mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Reset only when animating (#4923)
This commit is contained in:
parent
52790f6f23
commit
d415e617d8
@ -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();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user