Browse Source

Show gauge label when value is 0

pull/319/head
Masayuki Tanaka 11 years ago
parent
commit
5b4639c897
  1. 2
      c3.js
  2. 4
      c3.min.js

2
c3.js

@ -1062,7 +1062,7 @@
updated = updateAngle(d); updated = updateAngle(d);
value = updated ? updated.value : null; value = updated ? updated.value : null;
ratio = getArcRatio(updated); ratio = getArcRatio(updated);
if (! meetsArcLabelThreshold(ratio)) { return ""; } if (! hasGaugeType(c3.data.targets) && ! meetsArcLabelThreshold(ratio)) { return ""; }
format = getArcLabelFormat(); format = getArcLabelFormat();
return format ? format(value, ratio) : defaultArcValueFormat(value, ratio); return format ? format(value, ratio) : defaultArcValueFormat(value, ratio);
} }

4
c3.min.js vendored

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