here's the issue: I'm drawing a chart using external data (a .txt file that the user upload with datasets information). But if the user mistakenly upload the wrong file, he should be able to upload another file, thus redrawing the charts.
Here's what happen with the chart rendering when I upload multiple files, one after another:
Example of what they looks like: https://i.stack.imgur.com/EqPjy.jpg
Each time a draw the chart again, the background color gets darker. Every time a user upload a file I do the following:
- do a
chart.destroy()
and achart.clear()
- Remove used canvas and use a new one for the new chart
Is this a known issue? Anyone have any clue of what might be happening?