Micro Data-Viz
Waffle Fill Quantize
10x10 waffle grid fills cell-by-cell with a bright ripple to an honest integer percent, holds, then drains and cycles preset targets.
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
Dashboards or data stories needing a tactile percentage readout. Progress indicators where discrete unit counts matter.
When not to
Contexts requiring real-time live data — targets are hardcoded. Light backgrounds (palette is hardcoded dark navy).
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change TARGETS to [25,50,75,100] and set ACC to '#a78bfa' to show a purple waffle cycling through quarter-increments. 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
- TARGETS array (preset percentages)
- ACC color (#4fc3f7)
- FILL/HOLD/DRAIN frame counts
- unit scale factor (S*0.072)
- ripple trail length (d<3.2)
- theme tokens (:root dark defaults + [data-theme=light] overrides)
Keep intact
- IIFE wrapper
- prefers-reduced-motion static fallback
- visibilitychange pause/resume
- DPR-aware canvas sizing
- theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
Known limitations
- Click advances target but pointermove only speeds current phase, not skips it
- Background hardcoded in both CSS and BG constant — update both to change
- No aria label on canvas element
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.