Micro Data-Viz
Candlestick Ticker
22 green/red candlesticks scroll left continuously, generating random OHLC data; a dashed last-price line with live label updates in real time.
canvasmedium complexitymoderate motionclick
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
Finance dashboards, trading UI mockups, ambient data-viz backgrounds for fintech products.
When not to
Contexts needing real data — all prices are procedurally generated. Not suitable where motion competes with dense text content.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change UP color to '#00cfff' and DN color to '#ff9500', increase candle count to 30 (N=30), and slow scroll speed by changing 1100 to 1800. 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
- candle count (N=22)
- scroll speed (acc/1100 threshold)
- up/down colors (UP, DN constants)
- price volatility (random spread *7)
- canvas padding (padL/padR as W fraction)
- theme tokens (:root dark defaults + [data-theme=light] overrides)
Keep intact
- DPR-aware canvas resize
- visibilitychange pause guard
- prefers-reduced-motion freeze (shift=0 branch)
- IIFE wrapper
- theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
Known limitations
- Price scale is normalized 0–100 internally — not real market data
- Pointerdown resets chart entirely (init()) which may surprise users expecting click-to-pause
- Background color hardcoded to #0a0f0d in CSS
More Micro Data-Viz components
- Bar Grow + ReshuffleSeven rounded gradient bars ease to new random heights every 1.6s with glowing cap dots. Click triggers an immediate reshuffle.
- Live Line SweepA glowing cyan area line chart scrolls a live sine-plus-noise time-series across a faint grid, with a white head dot marking the latest value.
- Donut Ring ProgressOlive-to-terracotta gradient donut ring eases its fill to random targets with a leading dot and large centered percentage readout. Tap to jump to a new value.
- Sparkline Moving DotA green sparkline traces itself across a faint ghost path, led by a haloed white dot; on completion it regenerates a new random 28-point series.
- Radial Gauge NeedleSemicircular gauge on dark amber background with green-yellow-red arc segments; a glowing white needle sweeps smoothly via sine wave with a live 0–100…
- Heatmap Ripple12x6 grid of rounded cells colored via a magma ramp, with a sine-wave ripple emanating from a point that orbits and follows the cursor.