Commit ac81aeef authored by Masayuki Tanaka's avatar Masayuki Tanaka Committed by masayuki

Fix animation for subchart

parent 69b82167
......@@ -1062,13 +1062,12 @@
.attr("x", barX).attr("y", barY).attr("width", barW).attr("height", barH)
contextBar.enter().append('rect')
.attr("class", classBar)
.attr("x", barX).attr("y", height2).attr("width", barW).attr("height", 0)
.attr("x", barX).attr("y", barY).attr("width", barW).attr("height", barH)
.style("opacity", 0)
.transition()
.attr('y', barY).attr('height', barH)
.style('opacity', 1)
contextBar.exit().transition()
.attr('y', height2).attr('height', 0).style('opacity', 0)
.style('opacity', 0)
.remove()
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment