Chartjs-Getting the postion of the y-axis labels in chartJS

2👍

You can make x-axis tick labels 100% vertical by defining option scales.x.ticks.minRotation: 90.

options: {
  scales: {
    x: {
      ticks: {
        minRotation: 90
      }
    }
  }
}

For further information, please consult Tick Configuration from the Chart.js documentation.

Leave a comment