d3 transition (1)
d3 transition (1)
by Shang-De You
JavaScript
var svg = d3.select("body").append("svg")
.attr("width", 500)
.attr("height", 500)
svg.append("rect")
.attr("stroke", "black")
.attr("stroke-width", 3)
.attr("fill", "none")
.attr("width", 100)
.attr("height", 100)
.attr("transform", "translate(10,10)")
.transition()
.attr("transform", "translate(50,50)")