Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple tooltips with different trigger type #11115

Open
dileepyelleti opened this issue Aug 27, 2019 · 18 comments
Open

Multiple tooltips with different trigger type #11115

dileepyelleti opened this issue Aug 27, 2019 · 18 comments
Labels
difficulty: hard Issues that may take longer time to be fixed than the average. en This issue is in English new-feature priority: normal topic: tooltip
Milestone

Comments

@dileepyelleti
Copy link
Contributor

dileepyelleti commented Aug 27, 2019

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
#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
    }
  ]
@echarts-bot
Copy link

echarts-bot bot commented Aug 27, 2019

Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org .

If you are interested in the project, you may also subscribe our mail list.

Have a nice day! 🍵

@echarts-bot echarts-bot bot added en This issue is in English new-feature pending We are not sure about whether this is a bug/new feature. waiting-for-help labels Aug 27, 2019
@yufeng04
Copy link
Contributor

It is not currently supported.

@Ovilia
Copy link
Contributor

Ovilia commented Aug 29, 2019

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.

@Ovilia Ovilia removed pending We are not sure about whether this is a bug/new feature. waiting-for-help labels Aug 29, 2019
@Ovilia Ovilia changed the title Creating two independent Tooltips with different triggers (axis and item) in one chart Multiple tooltips with different trigger type Aug 29, 2019
@Ovilia Ovilia added this to the 5.0.0 milestone Aug 29, 2019
@Ovilia Ovilia added difficulty: hard Issues that may take longer time to be fixed than the average. priority: normal labels Aug 30, 2019
@rahulcyadav
Copy link

rahulcyadav commented Jan 31, 2020

@zl7261
Copy link

zl7261 commented Jul 20, 2020

I want to show the item's data when the trigger on bar.stack[i].item,
and show total analysis when trigger the part between the bar height to chart height.

Currently, the tooltip.formatter function has 3 parameters,

But I can't identify the trigger is from the axis or item in the tooltip.formatter function.

Obviously, the axis and the item trigger should have different behavior in a series-bar chart.

Does this is not supported in Echarts' latest version?
问题

@anoosurf
Copy link

image

a simple 'split' option to split the tooltip for each individual series.. is very helpful when analyzing multiple line charts

@Darshan-agent
Copy link

Darshan-agent commented Apr 19, 2021

@anoosurf can you give code snippet how you splits option

@anoosurf
Copy link

the above pic is from highcharts .. i was suggesting echarts should have an option like this for easy contextual tooltip

@Darshan-agent
Copy link

@anoosurf oh okay my Bad
tooltip item trigger won't trigger all the plots :(

@Darshan-agent
Copy link

Guys any Idea about below issue
image

@DavidFucsko
Copy link

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

@Joaveinz
Copy link

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?

@ddx32
Copy link

ddx32 commented Apr 11, 2022

Hi, we're looking for this feature in our team as well. Is there any update on it in v5?

@Ovilia Ovilia modified the milestones: 5.x, TBD Sep 1, 2022
@MarceloDiazz
Copy link

MarceloDiazz commented Nov 4, 2022

hello @Ovilia , do you have any idea if this feature was applied ?

@MarceloDiazz
Copy link

I have a problem, this tooltip does not show all the values ​​and they are below the div
image

@MarceloDiazz
Copy link

for some strange reason the style of the tooltip sends top with a negative number and it stays below the div
image

@MarceloDiazz
Copy link

image

@MarceloDiazz
Copy link

MarceloDiazz commented Nov 4, 2022

If anyone knows how I can edit that div to prevent it from doing that, If anyone knows how I can edit that div to prevent it from doing that, try extraCssText:"top:0 !important" but it doesn't work

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty: hard Issues that may take longer time to be fixed than the average. en This issue is in English new-feature priority: normal topic: tooltip
Projects
None yet
Development

No branches or pull requests