0👍
You are missing getContext()
on your line-chart element
var ctx = document.getElementById("line-chart").getContext('2d');
Source:stackexchange.com
0👍
You are missing getContext()
on your line-chart element
var ctx = document.getElementById("line-chart").getContext('2d');