0👍
In your sample you are using setinterval wrong.
setInterval(someFunction, 5000)
not
setInterval(someFunction(), 5000)
Your current code calls the function once. The setinterval call is doing nothing every 5 seconds.
- Chartjs-Hiding x-axes labels with 0 values on a bar chart
- Chartjs-Need to update tool tip value based on drop down filter after ajax call
Source:stackexchange.com