How to center the y-axis label horizontally in Highcharts?

空扰寡人 提交于 2020-01-15 05:58:06

问题


I have set the y-axis label to "align: high", that is it appears on top of the y-axis, horizontally. Now, as my title goes on two lines, I'd like to center the y-axis label. I tried it with "yaxis: { title { style { text-align: center}}}" and tried as well to put some CSS into the title. But it doesn't work.

Has anyone a tip for me? Thanks a lot!


回答1:


You mean title of chart or yAxis ?

http://api.highcharts.com/highcharts#yAxis.title.align http://api.highcharts.com/highcharts#title.align



来源:https://stackoverflow.com/questions/14767504/how-to-center-the-y-axis-label-horizontally-in-highcharts

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!