DEV Community

Not ilya mozerov
Not ilya mozerov

Posted on

A Trend Needs Two Clocks

A chart can show a line across three calendar days even when it contains readings from only two of them. Those are different facts, and a label that says only “two days” leaves the reader to guess which one it means.

We recently changed a map footer in Mishe to state both counts: observed dates and calendar days in the span. For a synthetic example, readings on Monday and Wednesday are two observed dates across three calendar days. Tuesday is a gap, not an observation.

That small distinction makes a trend easier to read honestly. A value can describe what changed between the first and last samples; it cannot tell you what happened during an unobserved day. A line or daily summary should not quietly turn missing measurements into continuous coverage.

When you publish a time trend, show the sampling window and the coverage separately:

  • Coverage: how many dates contain usable observations, and how many calendar days the window spans.
  • Summary: what statistic you used for each date, such as a median when readings are noisy.
  • Change rate: the units and elapsed time behind any slope, plus the direction that means an increase or decrease.
  • Gaps: whether a date had no usable sample, or whether rows were unreadable or excluded.

These labels do not fill in missing data. They let a reader see where the evidence starts and stops, and judge how much a trend can support.

Top comments (0)