score:2

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 series.data, and make sure it is not empty, and that it fits all of your other criteria.


Related Articles