Dashboard charts: drag across one to zoom #79

Merged
jcoffey-dev merged 1 commits from feat/chart-zoom into main 2026-10-05 22:08:19 +00:00
1 Commits
Author SHA1 Message Date
jcoffey-dev 383f51eb48 Dashboard charts: drag across one to zoom
ci / github (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / build (pull_request) Successful in 1m42s
ci / publish (pull_request) Skipped
Admin UX roadmap item 15, "charts you can zoom". Dragging across a
trend chart narrows every panel to that window; a Zoom chip beside the
period keys shows it, and clicking the chip goes back to the preset.

- History is sampled hourly unless set otherwise, so a zoomed window
  gets a slice per hour (3 to 60) and is never under three hours; a
  shorter sweep widens around its middle.
- Only the preset is saved, so a reload is back at it rather than in an
  old window.
- The slice under the pointer comes from its position on the plot, not
  from recharts' hover state, which runs a frame behind and made a
  quick sweep end where it began.
- Charts are plotted by slice rather than by label, so two slices that
  print alike stay apart.

3 new English strings; no other catalogues yet.
2026-10-05 15:06:14 -07:00