mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
The All range is read from the WEEK or MONTH rollup tier once a history is long enough, from DAY rows for a short one, and from the live table on a coverage miss. The chart folds every path into the average day of each week or month, but a tier row carried a cumulative metric's whole total and a level's reading-weighted mean. A month of steps therefore read about thirty times higher for a long history than for a short one, under a caption that said average. A tier row now carries the average day of its bucket on every tier: a cumulative metric's total over the days that hold a reading, a level's mean of its daily means. The rollup fold counts the bucket's days and adds up their means for it. Only the web chart's series reads (the chart endpoint and the dashboard batch) use these rows.