Chartjs-SetInterval on my Doughnut.js

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.

Leave a comment