Micro Data-Viz
Donut Ring Progress
Olive-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.
canvaslight 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
Loading screens, dashboard KPI widgets, progress indicators where a glanceable percentage with ambient motion fits the design.
When not to
Contexts needing multiple simultaneous rings or precise, user-controlled progress — the target is randomized automatically.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change the gradient colors from olive/terracotta to amber/orange by setting A='#ffb347' and B='#ff6b35', then increase ring thickness by changing lw=R*0.34 to lw=R*0.44. 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
- gradient colors (A and B constants)
- ring thickness (lw=R*0.34)
- easing speed (cur += (tgt-cur)*0.06)
- hold duration before retargeting (hold>90)
- initial target value (tgt=0.72)
- theme tokens (:root dark defaults + [data-theme=light] overrides)
Keep intact
- DPR-aware canvas resize
- visibilitychange pause guard
- prefers-reduced-motion snap (reduce branch)
- IIFE wrapper
- 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
- Label reads 'LOAD' — purely cosmetic, must be changed for non-loading contexts
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.
- 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.