Voronoi Test (N=2)
✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Oct 26, 2012
The example shows a Voronoi diagram computed from two fixed points, with each cell and its corresponding point circle filled using the same color from `d3.scale.category10()`. Using d3.v3 and SVG, the code applies `d3.geom.voronoi` to generate the cell polygons, then renders them as `path` elements with a hover effect that increases fill opacity. The circles are positioned via `transform` translations, and both layers receive black strokes from the shared CSS rule.
AI-generated descriptionThe colors of the circles should match the color of the background cells.
gpl-3.0 Licensed