HTML file won't generate anything on webpage using Chart.js

๐Ÿ‘:0

The problem lied in the line with new Chart(lineChart)...

This is incorrectly referenced in modern Chart.js. That line should look like this:

var myLineChart = Chart.Line(lineChart, {
    data: lineChartData,
    options: lineOptions
});

Leave a comment