All examples By author By category About


cluster force III

Built with

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:

  1. Uses v4's forceSimulation()
  2. Modularizes the 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.

forked from ericsoco's block: cluster force III