tweak force constants
This commit is contained in:
parent
88e7de0552
commit
97eb28a26d
|
@ -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; })
|
||||||
|
|
Loading…
Reference in a new issue