How to use Angular-Charts JS?

๐Ÿ‘:0

i have never used Chart.js before but seems that u are doing it wrong

you have never initialize the chart, by reading the documentation like for 10 second i found that you have to initialize it like this

var ctx = document.getElementById("here_is_the_canvas_element").getContext('2d');
var myChart = new Chart(ctx, { ... })

and you are using Chart.js code before you include the library

Leave a comment