From e774a893da4f7be405af2926ae74499f2ab0d813 Mon Sep 17 00:00:00 2001 From: Evert Timberg Date: Tue, 26 May 2015 18:54:36 -0400 Subject: [PATCH] Use new animation options in the animation service. --- src/Chart.Core.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Chart.Core.js b/src/Chart.Core.js index 1be01b57a..7fc57ac93 100755 --- a/src/Chart.Core.js +++ b/src/Chart.Core.js @@ -999,10 +999,10 @@ redraw: noop, render: function(duration) { - if (this.options.animation) { + if (this.options.animation.duration !== 0) { var animation = new Chart.Animation(); - animation.numSteps = (duration || this.options.animationDuration) / 16.66; //60 fps - animation.easing = this.options.animationEasing; + animation.numSteps = (duration || this.options.animation.duration) / 16.66; //60 fps + animation.easing = this.options.animation.easing; // render function animation.render = function(chartInstance, animationObject) {