score:0

note: the following code applies to only.


instead of minrotation - maxrotation, by using "rotation", you could rotate the labels of the x-axis - horizontal labels of the chart.

xaxis: {
    categories: ['apples', 'oranges', 'pears', 'grapes', 'bananas'],
    labels: {
      // set rotation of thex-axis labels to 45°: 
      rotation: 45
    }
  },

this js fiddle - which is based on this chart found in the documentation - contains the modification using rotation property.

i'm not sure why in your sample code i couldn't rotate the labels with rotation property, but, you can modify the code provided here for your purposes.


Related Query

More Query from same tag