Skip to content

Commit

Permalink
Show gauge label when value is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
masayuki0812 committed Jun 4, 2014
1 parent 3746404 commit 5b4639c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion c3.js
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,7 @@
updated = updateAngle(d);
value = updated ? updated.value : null;
ratio = getArcRatio(updated);
if (! meetsArcLabelThreshold(ratio)) { return ""; }
if (! hasGaugeType(c3.data.targets) && ! meetsArcLabelThreshold(ratio)) { return ""; }
format = getArcLabelFormat();
return format ? format(value, ratio) : defaultArcValueFormat(value, ratio);
}
Expand Down
Loading

0 comments on commit 5b4639c

Please sign in to comment.