Skip to content

Commit

Permalink
update svg width and height
Browse files Browse the repository at this point in the history
  • Loading branch information
hjzheng committed Feb 12, 2015
1 parent 1c4cf35 commit 87c4ea8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ angular.module('frontEnd', [])
});

var svg = d3.select($el[0]).append("svg")
.attr("width", radius * 2)
.attr("height", radius * 2)
.attr("width", document.documentElement.clientWidth)
.attr("height", document.documentElement.clientHeight - 30)
.call(
d3.behavior.zoom().scaleExtent([0.6, 3]).on("zoom", zoom)
);
Expand Down

0 comments on commit 87c4ea8

Please sign in to comment.