最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to show different tooltips for target and bar in Highcharts bullet graph? - Stack Overflow

programmeradmin2浏览0评论

I am implementing a bullet graph using Highcharts and need help with configuring tooltips.

My requirement is, When hovering over the target line: Show target-related details. When hovering over the bullet bar: Show revenue related details in my case. Currently, both the target and the bar show the same tooltip. I want them to display different information depending on where the user hovers.

This is what I followed:

Here's the code sandbox link for the implementation that I have done:

Issue: The tooltip currently shows the same information for both the bar and the target. I want separate tooltips: Bar hover: Show Revenue data(e.g., Revenue: 275) Target hover: Show target details (e.g., Target: 250)

Any guidance or code samples would be greatly appreciated!

发布评论

评论列表(0)

  1. 暂无评论