Browse Source

fixes `attrTween` does not get removed properly on `destroy`

https://github.com/c3js/c3/issues/2213
pull/2269/head
Vytautas Vitkus 7 years ago
parent
commit
b924da236d
  1. 4
      src/arc.js

4
src/arc.js

@ -373,6 +373,10 @@ c3_chart_internal_fn.redrawArc = function (duration, durationForExit, withTransf
interpolate = d3.interpolate(this._current, updated);
this._current = interpolate(0);
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);
interpolated.data = d.data; // data.id will be updated by interporator
return $$.getArc(interpolated, true);

Loading…
Cancel
Save