Commit Graph
2 Commits
Author SHA1 Message Date
Chris Lu d29b867fab admin: export the chart API for templates
Templates live in the app package, so the chart types and renderer must
be exported. Also anchors the y-axis at zero, left-pads shorter series so
multi-series charts stay aligned, escapes text nodes, renders a
'collecting data' placeholder before enough samples exist, and adds a
seconds unit for latency quantiles.
2026-09-14 23:59:38 -07:00
Chris Lu 7b9332953d admin: add server-side SVG chart renderer
Extends the existing sparklineSVG approach into a full chart helper
with axes, gridlines, multi-series lines/areas, legends, threshold
lines, and unit formatters (bytes, bps, ms, pct). No JS chart library;
safe to inline in templ pages.
2026-09-14 23:59:38 -07:00