mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Call update() and render() with a config object (#5592)
This commit is contained in:
parent
a0a195f353
commit
7cf132316a
@ -207,7 +207,9 @@ module.exports = function(Chart) {
|
||||
}
|
||||
|
||||
me.stop();
|
||||
me.update(me.options.responsiveAnimationDuration);
|
||||
me.update({
|
||||
duration: me.options.responsiveAnimationDuration
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
@ -884,7 +886,10 @@ module.exports = function(Chart) {
|
||||
|
||||
// We only need to render at this point. Updating will cause scales to be
|
||||
// recomputed generating flicker & using more memory than necessary.
|
||||
me.render(me.options.hover.animationDuration, true);
|
||||
me.render({
|
||||
duration: me.options.hover.animationDuration,
|
||||
lazy: true
|
||||
});
|
||||
}
|
||||
|
||||
me._bufferedRender = false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user