block by mbostock cd98bf52e9067e26945edd95e8cf6ef9

Radial Force

Full Screen

This example shows how to create a custom “radial” force that places nodes in a circle with a configurable radius and center. The red nodes form a circle of approximate radius 100px, and the blue nodes approximately 200px.

index.html