Topic: Disable Y axis on line chart

gabri35 free asked 5 years ago

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

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

gabri35 free commented 5 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 commented 5 years ago

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

Please insert min. 20 characters.


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



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