Topic: Disable Y axis on line chart

gabri35 free asked 7 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 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 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

  • ForumUser: Free
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags