{% import "_chart.html" as ch %} {# Steps, sleep and mood against one time axis — the overlay issue #12 asked for. 🔴 EACH LINE IS SCALED TO ITS OWN RANGE. Steps run to ~20,000 and sleep to ~8; on one shared axis the sleep line is a flat smear along the floor and the chart says nothing. The macro prints the sentence that makes that readable rather than misleading: only the TIME axis is shared, and the gap between two lines means nothing. 🔴 THE AXIS ENDS AT THE LAST DAY THE EXPORT COVERED, NOT TODAY. Apple delivers a day's numbers overnight, so today is empty until tomorrow — and a chart that runs to today would show every metric falling off a cliff at the right-hand edge, every single day. #} {% set o = c.ctx.overlay %} {% if c.ctx.stale %}

The sync has stopped, so this picture is old — nothing below is current.

{% endif %} {{ ch.line(c.ctx.chart, note="Ends " ~ (o.end_day or "—") ~ " — the export lands overnight, so today's numbers arrive tomorrow. Days with no reading are breaks in the line.") }}