Micro Data-Viz
Feline Waypoint Compass
A compass dial with a red-and-dust needle that jitters on its own and swings to a bearing when one of four Lisbon waypoint buttons is pressed.
cssmedium complexitymoderate motionclickaccessible
Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited
1
When to use it
Walking, route or proximity dashboards that point toward one of a few named places and show the distance as a small badge.
When not to
Real navigation. Bearings and distances are fixed sample values, and the needle does not follow a device heading.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Edit the data-deg, data-dist and data-desc attributes on the four .sw07-wp-btn buttons to change each bearing, distance and label, and swap the dust and red accents through --dust and --red on :root. Keep the .sw07-active class and aria-pressed in step when you add a waypoint, and keep the jitter loop gated by demoEnabled.
Safe to edit
- waypoint buttons (data-deg, data-dist, data-desc, label text)
- accent colours (--dust, --red, --asphalt on :root)
- needle jitter amplitude and speed (t += 0.05, sin/cos factors in loop)
- header and footer copy (.sw07-title, .sw07-foot)
Keep intact
- First deliberate input stops route jitter; selected waypoint state remains.
- demo-v1 preview lifecycle: initialize demoEnabled from window.__foreverPreview and stop attract work on the window forever:interactive event; retain manual feedback, settling, cleanup and explicit sessions
Known limitations
- State remains local to each mounted instance; format/theme remount preserves takeover, not component values.
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.