two d3 connected

This commit is contained in:
Oliver Gorwits
2017-12-16 15:22:08 +00:00
parent 854f37fc94
commit 01cd7a908d
2 changed files with 2 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ onmessage = function(event) {
var simulation = d3.forceSimulation(nodes)
.force("charge", d3.forceManyBody())
.force("link", d3.forceLink(links).distance(200).strength(0.5))
.force("link", d3.forceLink(links).distance(20).strength(1))
.force("x", d3.forceX())
.force("y", d3.forceY())
.stop();