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

Fix animation for subchart

parent 69b82167
...@@ -1062,13 +1062,12 @@ ...@@ -1062,13 +1062,12 @@
.attr("x", barX).attr("y", barY).attr("width", barW).attr("height", barH) .attr("x", barX).attr("y", barY).attr("width", barW).attr("height", barH)
contextBar.enter().append('rect') contextBar.enter().append('rect')
.attr("class", classBar) .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) .style("opacity", 0)
.transition() .transition()
.attr('y', barY).attr('height', barH)
.style('opacity', 1) .style('opacity', 1)
contextBar.exit().transition() contextBar.exit().transition()
.attr('y', height2).attr('height', 0).style('opacity', 0) .style('opacity', 0)
.remove() .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