1 thought on “long x-axis labels does not rotate to 90 on barcharts for version 2.3.0

  1. The bars being pushed away will be addressed when v2.5 releases.

    To get that rotation, you can do

    options: {
      scales: {
        xAxes: [{
          ticks: {
            minRotation: 90
          }
        }]
      }
    }

    The reason that the rotation doesn’t go further is that the default maxRotation setting is 90 and the labels are too long for the chart. Making the chart taller and setting maxRotation: 90 makes it better. See https://jsfiddle.net/e1g7qyuq/1/ using v2.5

Comments are closed.