diff --git a/src/core/core.controller.js b/src/core/core.controller.js index a255167bf..1b4cbe395 100644 --- a/src/core/core.controller.js +++ b/src/core/core.controller.js @@ -258,7 +258,9 @@ Chart.animationService.addAnimation(this, animation, duration, lazy); } else { this.draw(); - this.options.onAnimationComplete.call(this); + if (this.options.onAnimationComplete && this.options.onAnimationComplete.call) { + this.options.onAnimationComplete.call(this); + } } return this; },