Built with blockbuilder.org
forked from ericsoco's block: cluster force II
Moving toward a v4 modular version of Mike Bostock's Clustered Force Layout III.
There are two things worth mentioning here:
forceSimulation()
cluster
force, offering an API similar to other core d3-force
modules like, e.g., the positioning forces.This version spawns nodes further from the center and then pulls them toward the center via a custom attract force, also written as a module following the d3-force
module format/pattern.
https://d3js.org/d3.v4.min.js