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

[Bug] If selected series has null value, the tooltip doesn't show with showTip dispatchAction #20773

Open
petercsaki opened this issue Feb 20, 2025 · 1 comment
Labels
bug en This issue is in English pending We are not sure about whether this is a bug/new feature.

Comments

@petercsaki
Copy link

petercsaki commented Feb 20, 2025

Version

5.6.0

Link to Minimal Reproduction

https://codepen.io/petercsaki/pen/jEOWgre?editors=0010

Steps to Reproduce

  1. Create a chart with multiple series, where one has null values. Enable tooltips for it.
  2. Trigger the tooltip with dispatchAction showTip, with the seriesIndex pointing to the series that has null value.

Current Behavior

The tooltip doesn't show at all.

Expected Behavior

The tooltip should show.

Environment

- OS: any
- Browser: any
- Framework: none

Any additional comments?

When the selected series has a non null value, the tooltip shows, even if other series have nulls.
The same problem was fixed in 5.3 for the normal, hover over tooltips. #15757 The event driven tooltip was not fixed back then.

@petercsaki petercsaki added the bug label Feb 20, 2025
@echarts-bot echarts-bot bot added en This issue is in English pending We are not sure about whether this is a bug/new feature. labels Feb 20, 2025
@helgasoft
Copy link

helgasoft commented Feb 20, 2025

Workaround is to add an invisible series without missing values first, then tooltip dispatch will work.
Of course the tooltip content has to be customized - Demo.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug en This issue is in English pending We are not sure about whether this is a bug/new feature.
Projects
None yet
Development

No branches or pull requests

2 participants