0👍
You can put labels on your axes by configuring the scales part of the options object like this:
scales:{
y:{
scaleLabel:{
display:true,
labelString: "test"
}
}
},
If you are using V2 you will have to put the object in an array called yAxes for y and xAxes for x.
V3 docs: https://www.chartjs.org/docs/master/axes/labelling
V2 docs: https://www.chartjs.org/docs/latest/axes/labelling.html
- Chartjs-How to subscribe to elements in a response object
- Chartjs-Chart.js line chart update once every 5 seconds?
Source:stackexchange.com