开发者

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();
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜