mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-06 00:14:03 +01:00
Call update() and render() with a config object (#5592)
This commit is contained in:
committed by
Evert Timberg
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;
|
||||
|
||||
Reference in New Issue
Block a user