Force-Directed Layout with Convex Hull
✓ Published0🌍 Public
DDjokovalle
Last edited Feb 9, 2018
Created on Feb 9, 2018
This example demonstrates a force-directed layout where 100 nodes are organized into nine groups and arranged into a circular pattern using three columns. A Voronoi partition, generated with `d3.voronoi()`, divides the SVG canvas into polygonal cells around each node, with hover interactions highlighting the corresponding polygon in red. The simulation runs for 120 ticks via `d3.forceSimulation()` with forces for x/y positioning, collision avoidance, and centering, while nodes are rendered as colored circles with varying radii. The visualization uses SVG paths and circles, with the Voronoi cells drawn as white-filled polygons that react to mouse events.
AI-generated descriptionBuilt with blockbuilder.org
mit Licensed