forcegraph: linkStrength = 1 / tq
This commit is contained in:
parent
05386f0772
commit
3b21b49a0d
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue