๐:0
I got it working. I copied the JS from:
http://jsfiddle.net/nCFGL/223/
//Chart.js
//Define the global Chart Variable as a class.
var Chart = function(context){
var chart = this;
to make the chart.js file. Something is missing in the chart.js file I downloaded.
- Tooltips displaying "rgb(0,0,0)" instead of label value on bar chart
- How to add axis titles in chart.js charts
๐:0
Use this
scales: {
xAxes: [{
stacked: false,
beginAtZero: true,
scaleLabel: {
labelString: 'Month'
},
ticks: {
stepSize: 1,
min: 0,
autoSkip: false
}
}]
}