I need to rotate the x-axis labels 45 degrees. What I did is as below:
I have added chart.labelRotation =45
It is not working!
labelRotation
is a property of categoryAxis
, not chart's property. So you need to apply it to chart.categoryAxis
:
chart.categoryAxis.labelRotation = 45;
Here's your updated fiddle.