简体   繁体   English

高图无法正确显示工具提示标题

[英]Highcharts not displaying tooltip title properly

I'm using Highcharts (technically the Highstock .js file though) to display a chart on my site. 我正在使用Highcharts(尽管从技术上讲是Highstock .js文件)在我的网站上显示图表。 Everything works perfectly except the tooltip. 除工具提示外,其他所有功能均正常运行。 The API specifies that {series.name} should work for specifying the series name in the tooltip, but the chart actually displays "{series.name}" instead of the name itself. API指定 {series.name}应该用于在工具提示中指定系列名称,但是图表实际上显示的是“ {series.name}”而不是名称本身。 Here's a simplified jsFiddle that illustrates the issue. 这是一个简化的jsFiddle来说明问题。 Switch the comments on the headerFormat: lines in the tooltip section and you'll see that {point.key} works as expected, but {series.name} does not. tooltip部分的headerFormat:行上切换注释,您将看到{point.key}可以正常工作,但是{series.name}却不能正常工作。

What's wrong with the code to produce this problem? 产生此问题的代码有什么问题?

It is known bug reported to our developers here . 这是已知的bug报告给我们的开发人员在这里

Workaround: Use a tooltip formatter and print all informations which you need. 解决方法:使用工具提示格式化程序并打印所需的所有信息。

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

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