简体   繁体   中英

Highcharts not displaying tooltip title properly

I'm using Highcharts (technically the Highstock .js file though) to display a chart on my site. 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. Here's a simplified jsFiddle that illustrates the issue. 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.

What's wrong with the code to produce this problem?

It is known bug reported to our developers here .

Workaround: Use a tooltip formatter and print all informations which you need.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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