mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 20:42:43 +00:00
A chart shows the shape and hides the numbers. An appointment needs the numbers, and so does anyone moving readings into a spreadsheet. The table reads the same expression the chart hands Recharts, after the range slice, the week/month bucketing and the display scale, and it formats through the chart's own value and date formatters. Nothing is re-derived, so a cell and the tooltip cannot print two numbers for one point. Collapsed by default, with the point count in the trigger so the size reads while it is closed; the region scrolls in its own box rather than growing the page, and the table primitive already scrolls a wide row set sideways. The caption names the grain, because a weekly mean labelled as a daily reading would be a lie, and the grain now has one source shared with the bucketing. Derived overlays get no column: a moving average is drawn from the points, not measured. An empty window renders no table at all, since the chart's own empty state already says there is nothing there. Opt-in per mount. The metric sub-pages take it; the dashboard tiles do not, because a table under every tile buries the dashboard it summarises. Refs #636