[Chartjs]-Chart disappearing on dataset update

1👍

Found the issue:
As getJSON is executed asyncronously, and chart.update() was called after it, the chart was updated, and then it’s data was changed, causing the bug.
Make sure the chart.update() call is inside the $.getJSON(){...}.

Leave a comment