diff --git a/src/arc.js b/src/arc.js index 7b5c16e..ee3d71e 100644 --- a/src/arc.js +++ b/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);