2👍
You are missing creating chart itself:
var myChart = new Chart(chartData.ctx).Line(chartData.chart); //'Line' defines type of the chart.
2👍
You are only defining how the object should look like but you forgot to create it itself.
0👍
Follow CANVAS tutorial to add graph in DOM. http://www.williammalone.com/articles/html5-canvas-javascript-bar-graph/
- [Chartjs]-Show count concatenated to labels using chart.js
- [Chartjs]-How can I specify "per dataset" parsing with Chart.js?
Source:stackexchange.com