forever components

Charts & Flow

Candlesticks

Green and red OHLC candles stream in from the right with smooth slide animation; newest candle grows from pivot. Dashed last-price marker traces horizontally.

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

Fintech dashboards, trading UIs, ambient data-viz backgrounds where live market feel is needed.

When not to

Real data display without replacing the synthetic random-walk generator. Light-colored backgrounds — colors are hardcoded for dark themes.

Working with an AI agent

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

Change UP color to '#f0b429' and DN to '#e05c6e', increase visible candle count to 36 by setting N=36, and slow the streaming to slideDur=1600. 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

  • visible candle count (N=26)
  • slide duration (slideDur=1100ms)
  • up/down colors (UP, DN variables)
  • grid line opacity (GRID, AXIS)
  • candle body width ratio (bw=slot*0.56)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

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

Known limitations

  • Synthetic random-walk data only — no real data binding
  • Light re-theme via the [data-theme=light] token block; catalog bg/accent describe the dark default
  • No Y-axis price labels rendered

candlestickfinancechartcanvasstreamingohlcdata-viz

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