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] single bar with encode config cannot trigger axis tooltip #20653

Open
Justin-ZS opened this issue Jan 6, 2025 · 1 comment
Open

[Bug] single bar with encode config cannot trigger axis tooltip #20653

Justin-ZS opened this issue Jan 6, 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

@Justin-ZS
Copy link

Version

5.6.0

Link to Minimal Reproduction

demo

Steps to Reproduce

see the demo.

Current Behavior

hover over the bar, no tooltip gets shown

Expected Behavior

show tooltip

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

Fallbacking to data config and adding a dummty data: [ '' ] can fix.
But that workaround will cause all related logics have to handle two cases.

@Justin-ZS Justin-ZS added the bug label Jan 6, 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 Jan 6, 2025
@likexin-kk
Copy link

I think this is not a bug
For the example you provided, which has only one dimension mapped to the y-axis, you can set it to
Tooltip. axisPointer. axis='y 'to achieve the desired effect

https://echarts.apache.org/examples/zh/editor.html?c=bar-simple&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurGAJ4gCmRA5AMYCGYVA5sAE7m0A0J6AegGwAJs0ZEA2rVoBdEgF8-6cjnxFUpMpRqxaAN0YAbAK5Vai5WWDAjkEBv6w8AC2AB3ImA5mr6bxCsrFQcdIy4eLxO4fgACsAQ0CyhxFroMYR63E4KliR4IRBUmZJOmmlCouJSAMwADLJ-pFTQ9MAiukiw5FINsEpO_jp0AEaMHFFpsEaMI1RGjlPorh5ePlSD_TlWjSRiYIwFYFJlm3jAJhz0uqVLsJL18lNPpLnouwoA3EA

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