forever components

Micro Data-Viz

Dot Plot Rank Flip

Seven labeled rows animate new random values and reorder by rank each round; cyan dots slide horizontally and rows swap positions with cubic easing.

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

Leaderboard visualizations, live ranking dashboards, or ambient data-story loops where rank changes need to feel legible and smooth.

When not to

Contexts needing real data binding — values are randomly generated. Not suitable for static reports or light-background UIs (background hardcoded dark teal).

Working with an AI agent

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

Change the labels array to ['ALPHA','BETA','GAMMA','DELTA','EPSILON','ZETA','ETA'], set AC to '#ff6b6b' for a red accent, and increase dur from 92 to 140 for a slower transition. 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

  • labels array (7 row names)
  • accent color (AC='#26c6da')
  • transition duration (dur=92 frames)
  • hold pause length (hold=46 frames)
  • dot radius scale (dotR calc)
  • value random delta range (±0.5 in newRound)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • DPR-aware canvas sizing and ctx.setTransform
  • visibilitychange pause/resume
  • prefers-reduced-motion static frame fallback
  • IIFE wrapper
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)

Known limitations

  • Values are randomly generated — no real data binding
  • Background color hardcoded in CSS and BG constant; must change both
  • Click only triggers newRound during hold phase (phase===1), not during transition

dot-plotrankingdatavizcanvasanimationreordermicro-chart

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.