All examples By author By category About

ericsoco

cluster force II

Built with blockbuilder.org

forked from ericsoco's block: cluster force

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 ramps up collision strength using a d3.timer, to move toward the jitter-reduction effect in the original block.

Next: Cluster Force III