如何在Highcharts中水平放置y轴标签? [英] How to center the y-axis label horizontally in Highcharts?

查看:132
本文介绍了如何在Highcharts中水平放置y轴标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将y轴标签设置为align:high,即它出现在y轴的顶部,水平。现在,因为我的标题分为两行,所以我希望将y轴标签居中。我试着用yaxis:{title {style {text-align:center}}}并试着在标题中加入一些CSS。但它不起作用。

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!

推荐答案

你的意思是图表或yAxis的标题?

You mean title of chart or yAxis ?

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

这篇关于如何在Highcharts中水平放置y轴标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆