Subchapter 28.9
categories/charts/module.mdMarkdown2 KBView on GitHub
Animated data-viz from data. Asset-free (the “input” is the data). “One chart, one message” for short durations.
content: { type: bar|line|pie|race|pct, data[], labels[], headline, axes: bool }. For race, data must be cumulative/time-staged.
data-chart (animated bar + line, staggered reveal, value labels — proven: borrowed + customized + rendered to MP4 in the prototype charts-demo).bar-chart-race — install it rather than hand-authoring a race.npx hyperframes catalog --query "pie chart reveal" --json), then use D3/visx for data→geometry + GSAP for motion.stroke-dashoffset draw-on · pie radial sweep · ring fill · KPI count-up · race reorder.Reuse data-chart: npx hyperframes add data-chart → edit the data arrays + scales + headline/labels + palette in place (its data is baked in the script, not a --variables flag). Axes hidden by default; show muted only when magnitude is the message. Determinism: drive any animation from the seek clock, never wall-clock.
For a product-dashboard case: lay out a skeleton dashboard — a top bar with a real test logo (e.g. the hyperframes logo in samples/_assets/) + a title, then a grid of 3–4 KPI cards (each a stat count-up) + one data-chart panel. Reveal order: header/logo in → cards stagger in → the chart animates. Composes the stat + charts primitives inside a dashboard frame; the logo is a frozen project-local asset.