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.
https://d3js.org/d3-array.v1.min.js
https://d3js.org/d3-collection.v1.min.js
https://d3js.org/d3-dispatch.v1.min.js
https://d3js.org/d3-quadtree.v1.min.js
https://d3js.org/d3-selection.v1.min.js
https://d3js.org/d3-timer.v1.min.js
https://d3js.org/d3-force.v1.min.js