Reset only when animating (#4923)

This commit is contained in:
Ben McCann 2017-11-07 15:26:37 -08:00 committed by Evert Timberg
parent 52790f6f23
commit d415e617d8

View File

@ -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();