Skip to main content
100%

Voronoi

✓ Published0🌍 Public
AAjayyy
Last edited Jun 19, 2018
Created on Jun 19, 2018

This example shows an interactive Voronoi diagram built with D3 v4, displaying 100 randomly generated points and their corresponding cells. Initially, the cells are hidden, but users can enable a hover effect that highlights the cell containing the mouse cursor, turning the hovered point red. A toggle also reveals all Voronoi polygons as thin gray outlines. The visualization uses `d3.voronoi()` to compute polygon boundaries from the points, and renders the result as SVG paths and circles within a menu-driven interface.

AI-generated description

Voronoi.

From D3 in Depth book by Peter Cook.

forked from <a href='http://bl.ocks.org/d3indepth/'>d3indepth</a>'s block: <a href='http://bl.ocks.org/d3indepth/ee5a4b110b9841cc55dbba0716343143'>Voronoi (from introduction)</a>

gpl-3.0 Licensed

Similar vizzes