can anybody tell me why my chart.js chart is flickering? see this screencast video.
https://www.screencast.com/t/J8demDuX
It looks slow in the video but it actually changes very fast. You will see in the console the height and width changes but I don't have any code in javascript that forces it to change.
And also it happens only sometimes depending on the size of the browser. Making the canvas small is just a temporary fix but it will still be reproducible when I resize the browser.
Any suggestions?
I had a similar problem with my chart. I discovered it happend when recreating the chart on the same canvas.
If you recreate your chart multiple times on the same canvas, try calling the
.destroy();
function on your chart before recreating it.
Hope this helps
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With