|
|
@ -373,6 +373,10 @@ c3_chart_internal_fn.redrawArc = function (duration, durationForExit, withTransf |
|
|
|
interpolate = d3.interpolate(this._current, updated); |
|
|
|
interpolate = d3.interpolate(this._current, updated); |
|
|
|
this._current = interpolate(0); |
|
|
|
this._current = interpolate(0); |
|
|
|
return function (t) { |
|
|
|
return function (t) { |
|
|
|
|
|
|
|
// prevents crashing the charts once in transition and chart.destroy() has been called
|
|
|
|
|
|
|
|
if ($$.config === null) { |
|
|
|
|
|
|
|
return "M 0 0"; |
|
|
|
|
|
|
|
} |
|
|
|
var interpolated = interpolate(t); |
|
|
|
var interpolated = interpolate(t); |
|
|
|
interpolated.data = d.data; // data.id will be updated by interporator
|
|
|
|
interpolated.data = d.data; // data.id will be updated by interporator
|
|
|
|
return $$.getArc(interpolated, true); |
|
|
|
return $$.getArc(interpolated, true); |
|
|
|