Skip to content

Commit

Permalink
tweaked the contracts graph ball size
Browse files Browse the repository at this point in the history
  • Loading branch information
gomugomu committed Jul 13, 2014
1 parent 0d4487f commit 471f710
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions views/contracts.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
var color = d3.scale.category20();
var force = d3.layout.force()
.charge(-30)
.linkDistance(30)
.charge(-60)
.linkDistance(60)
.size([width, height]);
var svg = d3.select("#graph").append("svg")
Expand All @@ -53,7 +53,7 @@
.enter().append("circle")
.attr("class", "node")
.attr("r", function(d) {
return Math.log(d.value)/4;
return Math.sqrt(d.value/Math.PI)/250;
})
.style("fill", function(d) { return color(d.group); })
.call(force.drag);
Expand Down

0 comments on commit 471f710

Please sign in to comment.