score:26

Accepted answer

Yes, you can do this by:

  • Disabling the default gravity and charge forces.
  • Implementing collision detection.
  • Implementing "custom" gravity that attracts each node to its suggested position.

Here's a live example:

Similar techniques were used in Shan Carter's visualization of Obama's 2013 budget proposal, which are further discussed in a tutorial by Jim Vallandingham.


Related Query