Chartjs-Chart.js creating

0👍

Initially there was a typo that was shown in console errors (missing a ‘,’ in scale settings). The other issue is that you are not actually calling the draw_graph function after page load. Something like this will get you started:

document.addEventListener("DOMContentLoaded", function(event) {
    draw_graph(["one", "two", "three"], "test");
});

Leave a comment