Micro Data-Viz
Beeswarm Collide
Coral dots drop onto a value axis and collide-relax into a bimodal beeswarm silhouette; new points spawn continuously and pointer adds dots at cursor position.
canvasmedium complexitymoderate motionpointer
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
Data visualization demos, distribution illustrations, ambient generative backgrounds with a stats/analytics theme.
When not to
Contexts requiring actual labeled data or interactive tooltips — values are synthetic and dots carry no readable metadata.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change dot color to teal (#00c9b1) by setting AC='#00c9b1' and updating the hsl fill strings, increase MAX to 180, and slow spawning by changing acc+=0.016 to acc+=0.010. 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
- dot count cap (MAX=120)
- accent color (AC='#ff6f7d')
- dot radius scale (W,H / 110)
- bimodal hump centers and spreads in sampleVal()
- spawn rate (acc+=0.016)
- collision gap multiplier (md=R*2.05)
- theme tokens (:root dark defaults + [data-theme=light] overrides)
Keep intact
- IIFE wrapper
- prefers-reduced-motion guard with static fallback draw
- visibilitychange stop/start
- DPR-aware canvas sizing
- theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
Known limitations
- O(n^2) collision relax runs every frame — keep MAX under ~150 for smooth 60fps on low-end devices
- Background color hardcoded in BG constant and CSS — must change both to retheme
- Pointer adds unbounded dots each move event; fast swipes can flood the MAX cap quickly
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.