[Chartjs]-How to update a line graph dynamically with Vue-Chartjs efficiently?

0👍

Instead of destructuring assignments, you can try using Array.push() as follows:

onMounted(() => {
    setInterval(() => {
        label_values.value.push("August");
        data_values.value.push(1000);
    }, 3000)
})

Leave a comment