Chartjs-Create Chart using $getJSON and ChartJS

0๐Ÿ‘

โœ…

a problem is that you are not iterating j according to the length of delays but to the length of data, should be working if u adjust it sth. like:

for (var i = 0; i < data.length; i++) {
    for (var j = 0; j < data[i].delays.length; j++) {
        ...
    }
}

Leave a comment