tweak force constants

This commit is contained in:
Nils Schneider 2012-06-03 14:53:36 +02:00
parent 88e7de0552
commit 97eb28a26d

View file

@ -21,8 +21,8 @@ var vis = d3.select("#chart").append("svg")
d3.json("nodes.json", function(json) { d3.json("nodes.json", function(json) {
var force = d3.layout.force() var force = d3.layout.force()
.charge(-350) .charge(-100)
.gravity(0.05) .gravity(0.02)
.friction(0.75) .friction(0.75)
.theta(0.1) .theta(0.1)
.linkDistance(function (d) { return d.distance; }) .linkDistance(function (d) { return d.distance; })