Fix stuttering on pages with a chart

This commit is contained in:
2023-09-15 10:32:44 +02:00
parent fd35d12c08
commit ae00bc6a2c

View File

@@ -60,6 +60,11 @@ onMount(() => {
datasets: [],
},
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: {
legend: {
display: legend,