Skip to main content
100%

Force-Directed Layout with Convex Hull

✓ Published0🌍 Public
BBaptisteL54
Last edited Feb 9, 2018
Created on Feb 9, 2018

A force-directed layout places 100 randomly generated nodes into nine groups, each node with a random radius and connections to a few peers. The visualization displays these nodes as colored circles with black links, overlaid by a Voronoi diagram that partitions the canvas into convex hulls around each node. Hovering over a cell highlights it in red and briefly enlarges the corresponding node. The code uses `d3.forceSimulation` with force functions for links, many-body repulsion, positioning, collision, and centering, running 120 simulation ticks before rendering the Voronoi polygons and SVG elements.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes