block by nitaku f659c8283946ac885ddd913e7517b0d1

Collision + foci

Full Screen

This example elaborates on the previous one by adding an attraction force towards arbitrary points, using d3-force-attract by Eric Socolofsky. The plugin, as well as various other useful insights on how to use d3 v4 force layout, is described in this post on hi.stamen.

index.js

index.html

index.coffee

index.css