Make the avatars twice as big

This commit is contained in:
Eryn Wells 2012-08-18 23:11:27 -07:00
parent ac891f6fcb
commit 1fa791829f

View file

@ -39,8 +39,8 @@
/* Use a "flexible force-directed graph layout". */ /* Use a "flexible force-directed graph layout". */
var force = d3.layout.force() var force = d3.layout.force()
.gravity(.05) .gravity(.05)
.distance(200) .distance(250)
.charge(-250) .charge(-1000)
.size([w, h]); .size([w, h]);
var nodes = force.nodes(), var nodes = force.nodes(),
@ -52,7 +52,9 @@
force.on("tick", function() { force.on("tick", function() {
vis.selectAll("g.node") vis.selectAll("g.node")
.attr("transform", function(d) { return "translate(" + d.x + "," + d.y + ")"; }); .attr("transform", function(d) {
return "translate(" + d.x + "," + d.y + ")";
});
vis.selectAll("line.link") vis.selectAll("line.link")
.attr("x1", function(d) { return d.source.x; }) .attr("x1", function(d) { return d.source.x; })
@ -80,8 +82,8 @@
.attr("x", "-16px") .attr("x", "-16px")
.attr("y", "-16px") .attr("y", "-16px")
.style("border-radius", "16px;") .style("border-radius", "16px;")
.attr("width", "32px") .attr("width", "64px")
.attr("height", "32px"); .attr("height", "64px");
nodeEnter.append("title") nodeEnter.append("title")
.text(function(d) { return d.name }); .text(function(d) { return d.name });