So, I have a page that draws a force pattern, for example, shown here .
And it works great. I am using JS from here , with a few settings, to expand the nodes a bit.
These are more or less the only differences:
d3.json("force.json", function(json) { var force = d3.layout.force() .gravity(0.1) .charge(-2000) .linkDistance(1) .linkStrength(0.1) .nodes(json.nodes) .links(json.links) .size([w, h]) .start();
Where a reduction in bond strength seems to make links more like springs, it therefore becomes similar to the commonly used Fruchterman and Reingold techniques. This works quite well, but only for fairly small graphs. With large graphs, the number of transitions is simply growing - as one would expect, but the solution that it lands on is usually far from optimal. I am not looking for a way to get the best solution, I know that it is very difficult. I just would like for him to have a rude addition that is trying to fix the lines from each other, as well as the nodes.
Is there a way to add repulsion between links as well as between nodes? I am not familiar with how the power of D3 works, and I cannot find anything that is possible ...
will Aug 17 '12 at 13:50 2012-08-17 13:50
source share