1

How to change position of y-axis label from left to top with chart.js?

The chart with the y-axis label on the top The chart with the y-axis label on the left

Here's my current code of y-axis:

yAxes: [{
  gridLines: {
    display: false
  },
  scaleLabel: {
    display: true,
    labelString: 'Y Axis Label',
    fontSize: 20    
  }
}]
uminder
  • 23,831
  • 5
  • 37
  • 72
uses
  • 11
  • 4

0 Answers0