Chartjs-Chart JS Error : Uncaught TypeError: Cannot read property 'top' of undefined

0👍

You are missing getContext() on your line-chart element

var ctx = document.getElementById("line-chart").getContext('2d');

https://www.chartjs.org/docs/latest/

Leave a comment