forever components

Charts & Flow

Sparkline Grid

Nine 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.

canvasmedium complexitymoderate motion

Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited

Live demo — the real component, running in a sandbox. One self-contained HTML file, zero dependencies. Open it on the canvas →
Worth keeping? Votes steer what gets built next — sign in to cast one, free to read

When to use it

Dashboards, monitoring UIs, or ambient data-display tiles needing real-time multi-series charting without a charting library.

When not to

Contexts requiring interactive tooltips or labeled axes — this is display-only with no hover state or readable tick marks.

Working with an AI agent

Every component ships agent-ready metadata. An example instruction for this one:

Change grid to 2x2 (set COLS=2, ROWS=2), slow the update interval to 300ms (STEP=300), and shift the accent color to electric blue (#00d4ff). 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

  • grid dimensions (COLS=3, ROWS=3)
  • sample buffer length (LEN=46)
  • update interval (STEP=140ms)
  • accent color (ACC='#5ad1a0')
  • min/max marker colors (MAXC, MINC)
  • oscillator frequency range (0.8+rnd()*1.7)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • typed Float32Array ring buffers (allocation-free after setup)
  • DPR-aware canvas sizing in layout()
  • visibilitychange pause/resume guard
  • reduced-motion static fallback
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)

Known limitations

  • Synthetic data only — no real data feed wired in
  • No tooltips or value labels; not screen-reader accessible beyond the aria-label summary
  • All 9 series share one ring-buffer head, advancing in lockstep

sparklinedata-vizsmall-multiplescanvasgridscrollingreal-time

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.
  • Bubble Pack64 mint/teal/amber/coral circles settle under gravity with collision physics; size encodes value. Large bubbles pull toward center with a breathing pulse.