echarts: Multiple tooltips with different trigger type

What problem does this feature solve?

For my line chart I need to show two types of tooltips. One on hover on exact point(like with trigger item) and another on hovering any other place (like trigger axis). Below issue was raised for same but closed without proper response https://github.com/apache/incubator-echarts/issues/4905

What does the proposed API look like?

tooltip: [{
        trigger: 'axis',
        formatter: axisTooltipFormatter
      },{
        trigger: 'item',
        formatter: itemTooltipFormatter
      }]

Or

{
  tooltip: {
     trigger: 'axis',
     formatter: axisTooltipFormatter
  },
  series[{
     ...
     tooltip: {
        formatter: itemTooltipFormatter // item trigger
    }
  ]

About this issue

  • Original URL
  • State: open
  • Created 5 years ago
  • Comments: 18 (2 by maintainers)

Most upvoted comments

Hi. Multiple-tooltip is a feature we wish to implement in v5.0, which is a long term requirement. You may need to wait for some time before you can use this feature.

Hello @Ovilia, I see the version is now 5.2.2, has this been implemented? Or has the roadmap changed?

image

a simple ‘split’ option to split the tooltip for each individual series… is very helpful when analyzing multiple line charts

Why is this closed exactly?

image

a simple ‘split’ option to split the tooltip for each individual series… is very helpful when analyzing multiple line charts

This would be a nice feature