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++)
- Chartjs-How to plot a line graph with x and y data
- Chartjs-Two charts using same options, but I need different titles for the charts
1👍
Change
for (var i = 0; i < data.length; i++)
to
for (var i = 0; i < data.data.length; i++)
Source:stackexchange.com