Skip to main content
100%

Voronoi Tessellation

✓ Published0🌍 Public
Mmbostock
Last edited Oct 5, 2018
Created on Nov 12, 2012

This interactive Voronoi diagram shows how a set of one hundred random points partitions a 960-by-500 SVG canvas into polygonal cells. Moving the mouse repositions the first site, causing the diagram to recompute dynamically with the red polygon, black links, and white site markers updating in real time. Built with D3 v4 and the d3-voronoi library, the example renders polygons as SVG paths, links as lines, and sites as circles, with all geometry recalculated on each mouse move.

AI-generated description

An interactive demonstration of d3-voronoi rendered to SVG. Compare to Canvas.

gpl-3.0 Licensed

Similar vizzes