Physics

The physics of the simulation control how the elements interact, as follows:

  • centering force at the center of the SVG will draw all of the nodes toward it
  • A repulsive force on each node will prevent the nodes from getting too close to each other
  • Link forces will connect each of the nodes, so that they don't repel each other too much

Get D3.js Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.