简体   繁体   English

Highcharts工具提示x轴字体大小

[英]Highcharts tooltip x axis font size

from the highcharts api it says we can edit the fontsize in the tooltip, however, this only edits the values and not the x axis label. 从highcharts api中说,我们可以在工具提示中编辑字体大小,但是,这只会编辑值,而不是x轴标签。

在此处输入图片说明

Is there a way to increase the size of the Tuesday, May 17... etc as well? 有没有办法增加5月17日星期二等的大小? ie the x axis label? 即x轴标签?

Editing the real xaxis label did not work. 编辑实际的xaxis标签无效。

Thanks! 谢谢! :) :)

For custom tooltips formatting, you can use the formatter property to pass a function which returns your custom html. 对于自定义工具提示格式,可以使用formatter属性传递一个返回自定义html的函数。

tooltip: {
        formatter: function () {
            return 'The value for <b>' + this.x +
                '</b> is <b>' + this.y + '</b>';
        }
    }, 
useHTML: true

Fiddle here 在这里摆弄

More info here 更多信息在这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM