diff --git a/lib/forcegraph.js b/lib/forcegraph.js index 074229b..063569f 100644 --- a/lib/forcegraph.js +++ b/lib/forcegraph.js @@ -129,6 +129,9 @@ define(["d3"], function (d3) { .charge(-70) .gravity(0.05) .linkDistance(LINK_DISTANCE) + .linkStrength(function (d) { + return 1 / d.tq + }) .on("tick", tickEvent) .on("end", savePositions)