Chartjs-Can I remove the Y-axis counter on chart.js?

1👍

You can set the ticks display to false in the options object like this:

options: {
scales: {
    yAxes: [{
    ticks: {
      display: false
    }
  }]
}
}

Will give this result:
enter image description here

You can also use the callback to return an ampty string as tick which as side effect also removes the horizontal grid lines like this

options: {
scales: {
    yAxes: [{
    ticks: {
      callback: () => ('')
    }
  }]
}
}

result:
enter image description here

Leave a comment