Topic: Disable Y axis on line chart
Bartłomiej Malanowski staff answered 7 years ago
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 thisFREE 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