Browse Source

The path for background arc needs to be supplied with data to get it rendered. This went missing. (#2401)

pull/1753/merge
rahul_winner 7 years ago committed by Yoshiya Hinosawa
parent
commit
a47d06657f
  1. 3
      src/arc.js

3
src/arc.js

@ -471,8 +471,7 @@ c3_chart_internal_fn.redrawArc = function (duration, durationForExit, withTransf
if (hasGaugeType) { if (hasGaugeType) {
var index = 0; var index = 0;
backgroundArc = $$.arcs.select('g.' + CLASS.chartArcsBackground).selectAll('path.' + CLASS.chartArcsBackground).data($$.data.targets); backgroundArc = $$.arcs.select('g.' + CLASS.chartArcsBackground).selectAll('path.' + CLASS.chartArcsBackground).data($$.data.targets);
backgroundArc.enter().append("path"); backgroundArc.enter().append("path")
backgroundArc
.attr("class", function (d, i) { return CLASS.chartArcsBackground + ' ' + CLASS.chartArcsBackground +'-'+ i; }) .attr("class", function (d, i) { return CLASS.chartArcsBackground + ' ' + CLASS.chartArcsBackground +'-'+ i; })
.attr("d", function (d1) { .attr("d", function (d1) {
if ($$.hiddenTargetIds.indexOf(d1.id) >= 0) { return "M 0 0"; } if ($$.hiddenTargetIds.indexOf(d1.id) >= 0) { return "M 0 0"; }

Loading…
Cancel
Save