0👍
You should create the options hash before render your chart. Check the example bellow:
var options = {
scales: {
yAxes: [{
display: false
}]
}
var ctx = document.getElementById("canvas");
var myLineChart = new Chart(ctx, { type: 'line', data: data, options: options});
more about x and y axis cfg: http://www.chartjs.org/docs/
- Chartjs-How to get a value from function javascript and print it to the chart
- Chartjs-Chart.js chart won't animate inside of bootstrap carousel
Source:stackexchange.com