Commit 94976e50 authored by Masayuki Tanaka's avatar Masayuki Tanaka

Add transition for axis label

parent 47b13dad
...@@ -877,17 +877,20 @@ ...@@ -877,17 +877,20 @@
} }
function updateAxisLabels() { function updateAxisLabels() {
main.select('.' + CLASS.axisX + ' .' + CLASS.axisXLabel) main.select('.' + CLASS.axisX + ' .' + CLASS.axisXLabel)
.transition()
.attr("x", xForXAxisLabel) .attr("x", xForXAxisLabel)
.attr("dx", dxForXAxisLabel) .attr("dx", dxForXAxisLabel)
.attr("dy", dyForXAxisLabel) .attr("dy", dyForXAxisLabel)
.text(textForXAxisLabel); .text(textForXAxisLabel);
main.select('.' + CLASS.axisY + ' .' + CLASS.axisYLabel) main.select('.' + CLASS.axisY + ' .' + CLASS.axisYLabel)
.transition()
.attr("x", xForYAxisLabel) .attr("x", xForYAxisLabel)
.attr("dx", dxForYAxisLabel) .attr("dx", dxForYAxisLabel)
.attr("dy", dyForYAxisLabel) .attr("dy", dyForYAxisLabel)
.attr("dy", dyForYAxisLabel) .attr("dy", dyForYAxisLabel)
.text(textForYAxisLabel); .text(textForYAxisLabel);
main.select('.' + CLASS.axisY2 + ' .' + CLASS.axisY2Label) main.select('.' + CLASS.axisY2 + ' .' + CLASS.axisY2Label)
.transition()
.attr("x", xForY2AxisLabel) .attr("x", xForY2AxisLabel)
.attr("dx", dxForY2AxisLabel) .attr("dx", dxForY2AxisLabel)
.attr("dy", dyForY2AxisLabel) .attr("dy", dyForY2AxisLabel)
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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