3👍
Here is a working example of your code, i have removed the “onload” assignment, since you already have an document ready event that runs the whole thing. And moved out the function and data that doesnt need to be in there. Have a look and let me know if theres somehting you dont understand
window.onload = function(){ //is removed
https://jsfiddle.net/L7zgL02w/2/
And also, you should load jquery.js before the other files (since your functions.js uses jquery)
- [Chartjs]-Chart.js Line chart with different background colors for each section
- [Chartjs]-How to access or get value of specific graph on chart plot by click event?
Source:stackexchange.com