Skip to main content
100%

Circles

✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Nov 16, 2011

A field of 1,000 small circles drifts randomly across an SVG canvas, wrapping around the edges when they exit the viewport. A text label in the corner displays a live frames-per-second counter. The animation uses `d3.timer` to update each circle's `cx` and `cy` attributes every frame, with positions stored in a data array generated from `d3.range(1000)` and `Math.random`. The code runs on D3 v3 and renders purely with SVG elements.

AI-generated description
gpl-3.0 Licensed

Similar vizzes