Skip to content

Commit

Permalink
The path for background arc needs to be supplied with data to get it …
Browse files Browse the repository at this point in the history
…rendered. This went missing. (#2401)
  • Loading branch information
rahul-winner authored and kt3k committed Jul 6, 2018
1 parent f48c217 commit a47d066
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/arc.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,8 +471,7 @@ c3_chart_internal_fn.redrawArc = function (duration, durationForExit, withTransf
if (hasGaugeType) {
var index = 0;
backgroundArc = $$.arcs.select('g.' + CLASS.chartArcsBackground).selectAll('path.' + CLASS.chartArcsBackground).data($$.data.targets);
backgroundArc.enter().append("path");
backgroundArc
backgroundArc.enter().append("path")
.attr("class", function (d, i) { return CLASS.chartArcsBackground + ' ' + CLASS.chartArcsBackground +'-'+ i; })
.attr("d", function (d1) {
if ($$.hiddenTargetIds.indexOf(d1.id) >= 0) { return "M 0 0"; }
Expand Down

0 comments on commit a47d066

Please sign in to comment.