mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-06 08:24:05 +01:00
Reset only when animating (#4923)
This commit is contained in:
committed by
Evert Timberg
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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user