forever components

Micro Data-Viz

Odometer Count-Up

Six-digit mechanical odometer with rolling digit reels easing toward a random REQUESTS/SEC target; tap/click to randomize a new target value.

canvasmedium complexitymoderate motionclick

Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited

Live demo — the real component, running in a sandbox. One self-contained HTML file, zero dependencies. Open it on the canvas →
Worth keeping? Votes steer what gets built next — sign in to cast one, free to read

When to use it

Dashboards, live metric displays, or hero stats counters needing a tactile mechanical feel.

When not to

Contexts requiring exact real-time data binding — target is random; wire tgt externally before shipping.

Working with an AI agent

Every component ships agent-ready metadata. An example instruction for this one:

Change the label to 'USERS ONLINE', set the accent color COL to '#ff9f43', and slow the easing by changing 0.045 to 0.02. 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='#7af0c0')
  • digit count (DIG=6)
  • easing speed (0.045)
  • label text ('REQUESTS / SEC')
  • target range (Math.random()*1000000)
  • hold idle delay (hold>80)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • IIFE wrapper
  • prefers-reduced-motion guard (reduce=...matches)
  • visibilitychange pause
  • DPR-aware canvas sizing
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)

Known limitations

  • Target value is random — must replace tgt assignment with external data source for real metrics
  • Light re-theme via the [data-theme=light] token block; catalog bg/accent describe the dark default

odometercounternumbercanvasdata-vizmechanicalmonospace

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.