Chartjs-Remove only y-axis line from chat drawn using chart.js 1.0.2

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/

Leave a comment