Micro Data-Viz
Live Line Sweep
A 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.
canvaslight 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
Dashboard hero sections, live-data widgets, terminal-style monitoring UI backgrounds, or any dark-theme data-viz accent.
When not to
Light backgrounds (hardcoded dark navy). Contexts where users need to read real data — values are synthetic sine noise, not wired to real data.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change COL to '#ff6b6b' for a red alert theme, reduce M to 60 for fewer data points, and increase shadowBlur to 16 for a stronger glow. 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 (COL='#4dd1ff')
- data buffer length (M=120)
- phase step speed (phase+=0.12)
- noise amplitude (0.12 factor)
- update interval (step=90ms)
- fill gradient opacity stops ('44'/'00')
- theme tokens (:root dark defaults + [data-theme=light] overrides)
Keep intact
- IIFE wrapper
- prefers-reduced-motion guard (disables noise, freezes update)
- visibilitychange pause
- DPR-aware canvas sizing
- theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
Known limitations
- Data is synthetic (sine+noise) — must replace next() to wire real data
- Background color hardcoded in CSS; must edit to change dark navy
- Grid always shows 4 horizontal lines with no labels or axis values
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.
- 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.
- Odometer Count-UpSix-digit mechanical odometer with rolling digit reels easing toward a random REQUESTS/SEC target; tap/click to randomize a new target value.