Charts & Flow
Arc Timeline
Mint playhead sweeps a quarter-circle arc, lighting 11 event markers and tracing a cumulative magnitude ribbon on dark navy.
canvasmedium complexitymoderate motion
Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited
Worth keeping?
Votes steer what gets built next — sign in to cast one, free to read
When to use it
Data storytelling dashboards, project retrospectives, or ambient displays showing how events accumulate over a time span.
When not to
Light-background UIs (background hardcoded dark navy). Contexts needing interactive scrubbing — playhead sweeps automatically only.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change accent color from '#5ad1a0' to '#7c3aed', increase event count N to 16, and slow the sweep duration DUR from 8200 to 12000. Theme: dark tokens live in :root, the light variant in :root[data-theme="light"]; ?theme=light or a {type:'forever:theme'} postMessage switches at runtime.
Safe to edit
- accent color (AC='#5ad1a0')
- event count (N=11)
- sweep duration (DUR=8200)
- arc span angles (T0, T1)
- ribbon fill opacity (rgba 0.10)
- theme tokens (:root dark defaults + [data-theme=light] overrides)
Keep intact
- DPR-aware canvas sizing
- visibilitychange pause/resume
- prefers-reduced-motion static fallback (frame(1))
- IIFE wrapper
- theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
Known limitations
- Background color hardcoded in CSS — must edit --ch09-bg to change from dark navy
- No user scrubbing; playhead is purely auto-animated
- Seeded random events are fixed — changing N requires re-tuning the seed loop
More Charts & Flow components
- Sankey FlowThree-stage Sankey diagram on dark canvas: bezier ribbons grow stage-by-stage from origins to hubs to outcomes, pulsing softly in opacity to show flow volume.
- Chord DiagramEight ring nodes with curved ribbons that swell and shrink as weights rebalance every ~3s. Additive blending creates glowing color overlaps.
- Treemap7 rounded cells partition the canvas via slice-dice treemap; cells lerp to new sizes every 2.6 s as synthetic values drift, with a subtle alpha pulse.
- CandlesticksGreen and red OHLC candles stream in from the right with smooth slide animation; newest candle grows from pivot. Dashed last-price marker traces horizontally.
- StreamgraphSix translucent stacked bands breathe around a central baseline via layered sines; a sweeping readout line tracks across with colored tick dots per band.
- Sparkline GridNine teal sparklines in a 3x3 grid scroll leftward every 140ms; orange/blue diamonds mark running max/min and a halo dot tracks the latest value.