me.config.update(me.options);
me.options = me.config.options;
- me._animationsDisabled = !me.options.animation;
+ const animsDisabled = me._animationsDisabled = !me.options.animation;
me.ensureScalesHaveIDs();
me.buildOrUpdateScales();
me._updateLayout();
- // Can only reset the new controllers after the scales have been updated
- each(newControllers, (controller) => {
- controller.reset();
- });
+ // Only reset the controllers if we have animations
+ if (!animsDisabled) {
+ // Can only reset the new controllers after the scales have been updated
+ // Reset is done to get the starting point for the initial animation
+ each(newControllers, (controller) => {
+ controller.reset();
+ });
+ }
me._updateDatasets(mode);
* @protected
*/
includeOptions(mode, sharedOptions) {
- return !sharedOptions || isDirectUpdateMode(mode);
+ return !sharedOptions || isDirectUpdateMode(mode) || this.chart._animationsDisabled;
}
/**