Skip to content
Snippets Groups Projects
Commit 02adcdfb authored by Rob Sherwood's avatar Rob Sherwood
Browse files

topology ui: bigger nodes

parent 72793d4d
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,7 @@ window.TopologyView = Backbone.View.extend({
var color = d3.scale.category20();
var force = d3.layout.force()
.charge(-120)
.linkDistance(30)
.linkDistance(60)
.size([width, height]);
var svg = d3.select("#topology-graph").append("svg")
.attr("width", width)
......@@ -85,7 +85,7 @@ window.TopologyView = Backbone.View.extend({
var node = svg.selectAll("circle.node").data(all_nodes)
.enter().append("circle")
.attr("class", "node")
.attr("r", 10)
.attr("r", 20)
.style("fill", function(d) { return color(d.group); })
.call(force.drag);
node.append("title").text(function(d) { return d.name; });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment