Chartjs-Chart.js with JSON empty

2👍

Your loop is incorrect, look at the stop condition in the for cycle.

You have to use data.data.length instead of data.length:
For reference:

for (var i = 0; i < data.data.length; i++)

1👍

Change

for (var i = 0; i < data.length; i++)

to

for (var i = 0; i < data.data.length; i++)

Leave a comment