gpt4 book ai didi

google-chrome - Highcharts - 工具提示和系列名称在 chrome 中是开箱即用的

转载 作者:行者123 更新时间:2023-12-02 07:38:54 25 4
gpt4 key购买 nike

我使用的是 highcharts 2.3.3,我使用以下代码来描述图表的工具提示。

tooltip: {
formatter: function() {
return '<b>' + Highcharts.dateFormat('%b %e, %Y', this.x) + '</b><br/>'+ this.y;
}
},

工具提示在firefox 中没有问题,但在chrome 中文本显示在工具提示框外。我也有这个系列名称的问题。这个名字开箱即用。有什么问题?

最佳答案

如果它不起作用,您可以将 tooltip 的 useHTML 属性设置为 ture,

  tooltip:{
useHTML:true
}

关于google-chrome - Highcharts - 工具提示和系列名称在 chrome 中是开箱即用的,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13316784/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com