Accepted answer

As Lars Kotthoff stated it can be done manually (I found as inspiration), but actually it could be done a lot simpler if I just changed the force-layout a bit.

If I let the central node have a quite strong charge compared to the remaining nodes, they will align nicely in a circle around the node, removing any overlaps:

.charge(function(d, i) { return i==0 ? -10000 : -500; })


You can put extra nodes on the edges to reduce overlap.


Related Query

More Query from same tag