Skip to content Skip to sidebar Skip to footer

Canvas Emptied But Reappears

I have seen several solutions on this issue but have not found one yet that works for my situation. I have a chart being made with chart.js which uses canvas to display. I have a f

Solution 1:

You should use the chart.js functions for updating and clearing charts rather than the ones for the html canvas. The docs are quite straightforward. https://www.chartjs.org/docs/latest/developers/updates.html


Post a Comment for "Canvas Emptied But Reappears"