Commit 549db34c authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix label and transition for null value

parent 62a0de05
...@@ -1438,7 +1438,7 @@ ...@@ -1438,7 +1438,7 @@
function selectorTarget(id) { return '.' + CLASS.target + getTargetSelectorSuffix(id); } function selectorTarget(id) { return '.' + CLASS.target + getTargetSelectorSuffix(id); }
function initialOpacity(d) { function initialOpacity(d) {
return withoutFadeIn[d.id] ? 1 : 0; return d.value !== null && withoutFadeIn[d.id] ? 1 : 0;
} }
function initialOpacityForText(d) { function initialOpacityForText(d) {
var targetOpacity = opacityForText(d); var targetOpacity = opacityForText(d);
...@@ -1485,7 +1485,7 @@ ...@@ -1485,7 +1485,7 @@
return subX(d.x); return subX(d.x);
} }
function defaultValueFormat(v) { function defaultValueFormat(v) {
var yFormat = __axis_y_tick_format ? __axis_y_tick_format : function (v) { return +v; }; var yFormat = __axis_y_tick_format ? __axis_y_tick_format : function (v) { return isValue(v) ? +v : ""; };
return yFormat(v); return yFormat(v);
} }
function defaultArcValueFormat(v, ratio) { function defaultArcValueFormat(v, ratio) {
......
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