Skip to main content
100%

Force-Directed Layout with Convex Hull

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

A force-directed simulation of one hundred nodes grouped into nine clusters reveals a structured layout, with a Voronoi partition drawn as convex hulls that separate the groups. The code uses `d3.forceSimulation` with `forceLink`, `forceManyBody`, `forceX`, `forceY`, and `forceCollide` to position nodes, while `d3.voronoi` computes the polygon boundaries. The SVG rendering includes interactive highlighting on mouseenter, which temporarily enlarges nodes in the hovered partition.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes