Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.setTimeout(function() {
- var max = d3.max(d3.selectAll(".node")[0], function(g) {
- return d3.transform(d3.select(g).attr("transform")).translate[1];
- });
- //set the max of the group
- d3.select("svg").attr("height", max + 100)
- console.log(max)
- }, 800)//execute after 800 milliseconds after the update.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement