Skip to main content
100%

Uniform Random

✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Jun 5, 2014

A grid of 3,000 circles appears one by one at random positions across a 960×500 SVG canvas. Each circle starts with a radius of zero and animates outward to a radius of two pixels via D3's `transition.attr`. The animation uses `d3.timer` to append ten new circles per frame, driven by a custom `uniformRandomSampler` function that returns `[Math.random() * width, Math.random() * height]` coordinates. This demonstrates a simple, lightweight approach to generating and animating random scatter points with D3 v3.

AI-generated description
gpl-3.0 Licensed

Similar vizzes