Skip to content

Commit

Permalink
Reset only when animating
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Nov 7, 2017
1 parent 3470982 commit 4526dca
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/core/core.controller.js
Expand Up @@ -365,9 +365,11 @@ module.exports = function(Chart) {
me.updateLayout();

// Can only reset the new controllers after the scales have been updated
helpers.each(newControllers, function(controller) {
controller.reset();
});
if (me.options.animation && me.options.animation.duration) {
helpers.each(newControllers, function(controller) {
controller.reset();
});
}

me.updateDatasets();

Expand Down

0 comments on commit 4526dca

Please sign in to comment.