Dynamically setting xAxis rotation in high charts API
Using the below option in Chart I am able to set label rotation angle for Xaxis,
xAxis: {
labels: {
rotation: 90
}
},
I would like to change the xAxis rotation dynamically(say on a开发者_JAVA百科 button click for a particular chart type). Is there any option to do that?
This is working for me :
chart.xAxis[0].update({labels:{rotation:rotationValue}});
Try something like this, I am not sure that it will work.
chart.xAxis[0].options.labels.rotation = 0;
chart.redraw();
精彩评论