Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. window.setTimeout(function() {
  2. var max = d3.max(d3.selectAll(".node")[0], function(g) {
  3. return d3.transform(d3.select(g).attr("transform")).translate[1];
  4. });
  5. //set the max of the group
  6. d3.select("svg").attr("height", max + 100)
  7. console.log(max)
  8. }, 800)//execute after 800 milliseconds after the update.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement