Login with:


Not a member? Sign Up

Forgot Password?

Signup with:


Already have an account? Log in

Disable Y axis on line chart

MDB SupportCategory: General Bootstrap questionsDisable Y axis on line chart
gabri35 asked 6 days ago, version:4.41


How can I disable the y axis on a line Chart?


1 Answers
Bartłomiej Malanowski answered 5 days ago

Try this code:

options: {
scales: {
yAxes: [{
display: false

Bartłomiej Malanowski replied 2 days ago

Currently, you cannot disable specific axes. It’s because of Chart.js doesn’t allow this

gabri35 replied 5 days ago

Thank you it worked.

But is it also posible to disable a specific y axis?
For example, I only want to show the yaxis with the labels.