So at the moment I have implemented d3.layout.force() on my circles so they do not overlap, but it doesn't work on the label that I have & if you refresh enough they eventually overlap. I've tried to implement on both with no luck .. I've based my idea on this example -
http://bl.ocks.org/1377729
This is t he current attempt of the force label, but if you run it multiple times you'll see the text overlaps...
http://jsfiddle.net/xwZjN/4/
I've tried to implement this code for the labels/text :
var force2 = d3.layout.force()
.charge(-550)
.linkDistance(50);
force2
.nodes(json)
.start();
But, to no avail! Am I going about it in the wrong way? Please help.