Skip to main content
100%

d3-path for Distance-limited Voronoi cell - d3v4

✓ Published0🌍 Public
KKcnarf
Last edited Oct 13, 2016
Created on Aug 5, 2016

This example demonstrates a distance-limited Voronoi cell, showing the intersection of a Voronoi cell with a circle around a central seed. Users can drag the seeds or the radius anchor to interactively update the highlighted region. The visualization uses D3 v4’s `d3.voronoi()` for layout and a `d3.path()` context to compute the limited-cell path via canvas-like directives, rendering the result as SVG with draggable circles.

AI-generated description

This block is a continuation on my reflexions on Distance-Limited Vornoi Interaction (see 4, 3, 2, and 1).

This block experiments how to compute the path of a distance limited vironoï cell, which is the intersection area of a d3 Voronoï cell and a circle.

Compared to the previous block, the algorithm uses a d3-path context and its canvas-like directives (instead of producing a svg-compatible string).

Acknowledgments to:

gpl-3.0 Licensed

Similar vizzes