I am displaying a pie and a bar charts for different projects using ChartJS. When I click on the first project in the Statistics tab, it displays the charts correctly. When I click on the next projects, its not displaying the charts from there on. Instead, an exception is thrown:
Uncaught IndexSizeError: Failed to execute 'arc' on 'CanvasRenderingContext2D': The radius provided (-0.5) is negative.
I'm trying to solve this for a long time. But I couldn't make it up. Can anyone help me with this?