Fix stuttering on pages with a chart
This commit is contained in:
@@ -60,6 +60,11 @@ onMount(() => {
|
|||||||
datasets: [],
|
datasets: [],
|
||||||
},
|
},
|
||||||
options: {
|
options: {
|
||||||
|
responsive: true,
|
||||||
|
// Only update the chart 100ms after the last time the container
|
||||||
|
// is resized. This fixes the stuttering that happens when the
|
||||||
|
// chart updates each frame
|
||||||
|
resizeDelay: 100,
|
||||||
plugins: {
|
plugins: {
|
||||||
legend: {
|
legend: {
|
||||||
display: legend,
|
display: legend,
|
||||||
|
Reference in New Issue
Block a user