Use new animation options in the animation service.

This commit is contained in:
Evert Timberg
2015-05-26 18:54:36 -04:00
parent b03a057a76
commit e774a893da

View File

@@ -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) {