Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var width = $('svg').width();
- var height = $('svg').height();
- var svg = d3.select('svg');
- svg
- .attr('width', width)
- .attr('height', height);
- var mySquare=svg.append("rect")
- .attr("x",60)
- .attr("y",60)
- .attr("width",60)
- .attr("height",60);
- mySquare
- .transition()
- .attr("width", 1000);
Add Comment
Please, Sign In to add comment