Chartjs-Chart.js scatter axis titles

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

Leave a comment