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)
})
- [Chartjs]-How to change React chartjs-2 legend click functionality to hide all except the one clicked?
- [Chartjs]-Execute script after loading server side rendered React component
Source:stackexchange.com