forcegraph: linkStrength = 1 / tq

This commit is contained in:
Nils Schneider 2015-04-01 01:07:40 +02:00
parent 05386f0772
commit 3b21b49a0d

View file

@ -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)