Micro Data-Viz
Heatmap Ripple
12x6 grid of rounded cells colored via a magma ramp, with a sine-wave ripple emanating from a point that orbits and follows the cursor.
canvasmedium complexitymoderate motionpointer
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
Data dashboard accents, ambient background panels, or any context needing a living heatmap visualization with pointer interactivity.
When not to
Contexts requiring actual data binding — values are procedural, not driven by real datasets. Avoid on low-contrast light backgrounds (dark canvas hardcoded).
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change COLS to 16 and ROWS to 8 to increase grid density, then shift the magma ramp's hottest stop from [255,230,150] to [255,255,255] for a white-hot peak. 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=12, ROWS=6)
- magma color stops (stops array)
- ripple speed (phase += 0.05)
- orbit amplitude (0.32, 0.3)
- ripple frequency (d*9)
- theme tokens (:root dark defaults + [data-theme=light] overrides)
Keep intact
- IIFE wrapper
- prefers-reduced-motion guard (reduce flag stops phase advance and orbit)
- visibilitychange pause
- DPR-aware canvas sizing
- theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
Known limitations
- Light re-theme via the [data-theme=light] token block; catalog bg/accent describe the dark default
- Ripple is purely decorative, not data-driven
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…
- 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.