Browse Source

Fix label and transition for null value

pull/104/head
Masayuki Tanaka 11 years ago
parent
commit
549db34c21
  1. 4
      c3.js
  2. 2
      c3.min.js

4
c3.js

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

2
c3.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save