Input: a line width W (pixels), then lines view START END (dates). Data is recorded every 5 minutes.
For each view, choose the finest aggregation level among 5 minutes (300 s), hour (3,600 s), day (86,400 s), week (7 days) and 30 days such that the number of points ⌊span / level⌋ is at most W; if even 30 days gives more than W points, use 30 days and add (still too many). Print:
view 2026-03-01..2026-03-08 (7 days): aggregate per hour -> 168 points