tweak force constants

alfred-data
Nils Schneider 2012-06-03 14:53:36 +02:00
parent 88e7de0552
commit 97eb28a26d
1 changed files with 2 additions and 2 deletions

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; })