开发者

Dynamically setting xAxis rotation in high charts API

开发者 https://www.devze.com 2023-03-08 17:07 出处:网络
Using the below option in Chart I am able to set label rotation angle for Xaxis, xAxis: { labels: { rotation: 90

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

精彩评论

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

关注公众号