you should check that your data is valid before you pass it to the chart.

right above where you create the chart, simply loop through your, and make sure it is not empty, and that it fits all of your other criteria.

Related Query

More Query from same tag