SVG Swarm
✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on May 9, 2012
Five hundred steel-blue circles drift in a simulated swarm, their velocities and positions updated each frame with a simple particle model. D3.js v3 binds the data to SVG circle elements, translating each via the `transform` attribute and scaling its radius based on velocity. A `d3.timer` callback drives the animation, while a live FPS counter in the page header reports the update rate. The visualization compares SVG rendering performance against a canvas-based alternative, using D3's linear scales to map the particle coordinates to pixel space.
AI-generated descriptionCompare to Canvas Swarm.
A response to Trevor Bedford's post, Comparing performance of Processing.js and D3.js.
gpl-3.0 Licensed