Disable Y axis on line chart


Topic: Disable Y axis on line chart

gabri35 asked 7 years ago

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

Bartłomiej Malanowski staff pro premium answered 7 years ago

Try this code: options: { scales: { yAxes: [{ display: false }], } },

gabri35 commented 7 years 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.

Bartłomiej Malanowski staff pro premium commented 7 years ago

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

Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No