Micro Data-Viz
Cadence Chronometer
A dark card with a gold contour line that scrolls like a walked hill, a red walker dot riding it, a cadence of 118 steps a minute and a running timecode.
canvasmedium complexitymoderate motionaccessible
Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited
1
When to use it
Walking, running or travel features that need an ambient pace readout over a scrolling route profile.
When not to
Real GPS or pace data. The cadence is a fixed label, the hill is a sine curve and the timer simply counts up.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change the route line colour (#C9B274 stroke) and the walker dot (#D93829) in render(), the hill shape in the two Math.sin terms, the scroll speed with off += 1.4, and the labels in .sw01-cadence, .sw01-sub and .sw01-meta. The timecode starts at sec = 258.4.
Safe to edit
- hill shape and scroll speed (Math.sin terms, off += 1.4)
- route and walker colours (#C9B274, #D93829, fill rgba(201,178,116,.15))
- cadence and place labels (.sw01-cadence, .sw01-sub, .sw01-meta)
- timecode start and rate (sec = 258.4, sec += 0.016)
Keep intact
- IIFE wrapper
- prefers-reduced-motion guard (freezes the timecode and scroll)
- visibilitychange pause
- scheduleFrame frame lifecycle
Known limitations
- Data is decorative: cadence is a fixed label and the timecode is not tied to real time
- Canvas is a fixed 420 by 280 and scales with CSS only
- Background colour is drawn in the canvas as well as in CSS; change both
More Micro Data-Viz components
- Live Line SweepA soft verdigris area line 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 sage-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.