forever components

Charts & Flow

Chord Diagram

Eight ring nodes with curved ribbons that swell and shrink as weights rebalance every ~3s. Additive blending creates glowing color overlaps.

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

Ambient data-viz backgrounds, network relationship storytelling, dashboards needing a living connections motif.

When not to

Contexts needing readable, accurate data — weights are synthetic and auto-cycling. Not suitable as a real chart without wiring actual data.

Working with an AI agent

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

Change node count to 6 by setting N=6 and trimming PAL to 6 colors, then slow rebalance from t>3.2 to t>6.0 for a calmer pace. 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

  • node count (N=8)
  • color palette (PAL array)
  • rebalance interval (t>3.2)
  • lerp speed (0.018)
  • ring radius ratio (R=0.40, RI=0.34)
  • angular gap (GAP=0.045)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • IIFE wrapper
  • visibilitychange pause/resume guard
  • prefers-reduced-motion static fallback (drawStatic)
  • DPR-aware canvas sizing
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)

Known limitations

  • Data is synthetic — no real data binding; replace seed/rng logic to display actual values
  • Light re-theme via the [data-theme=light] token block; catalog bg/accent describe the dark default
  • No labels or tooltips — purely decorative

chord-diagramdata-vizcanvasadditive-blendnetworkambientgenerative

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