Commit f7b9bfca authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix data label when data updated - #99

parent 436dc745
......@@ -2932,11 +2932,11 @@
.attr("class", classText)
.attr('text-anchor', function (d) { return __axis_rotated ? (d.value < 0 ? 'end' : 'start') : 'middle'; })
.style("stroke", 'none')
.style("fill-opacity", 0)
.text(function (d) { return defaultValueFormat(d.value); });
.style("fill-opacity", 0);
mainText
.style("fill-opacity", initialOpacityForText)
.transition().duration(duration)
.text(function (d) { return defaultValueFormat(d.value); })
.attr('x', xForText)
.attr('y', yForText)
.style("fill-opacity", opacityForText);
......
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