Cannot read property 'labels' of undefined
问题 I am just learning how chart.js works so I have used the example code directly off of chart.js API page and it doesn't seem to work. I places the following code in the script tag and I get a " Cannot read property 'labels' of undefined" error. Not sure what this error means $(function () { var ctx = $('#myCanv').get(0).getContext("2d"); var myRadarChart = new Chart(ctx).Radar(data, options); var data = { labels: ["Eating", "Drinking", "Sleeping", "Designing", "Coding", "Cycling", "Running"],