apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.58k stars 19.61k forks source link

[Bug] tooltip.trigger=axis时不显示,但是设置为item就显示 #19029

Open isaacqian opened 1 year ago

isaacqian commented 1 year ago

Version

5.4.2

Link to Minimal Reproduction

https://codesandbox.io/s/xr3lhv

Steps to Reproduce

  1. echarts图表创建在一个单独的vue文件内,然后用vue3-sfc-loader这个库动态加载vue文件然后渲染

Current Behavior

当前页面设置为trigger=axis,此时tooltip不显示,页面中只有一个空白的div,renderMode=richText也不行。trigger=item时就一切正常了。

Expected Behavior

trigger=axis或者item时,tooltip都能正常显示

Environment

- OS:window 10
- Browser:chrome 115.0.5790.102
- Framework:无

Any additional comments?

No response

echarts-bot[bot] commented 1 year ago

@isaacqian It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗

TRANSLATED
**TITLE** [Bug] Tooltip.trigger=axis is not displayed, but it is displayed when it is set to item **BODY** ### Version 5.4.2 ### Link to Minimal Reproduction https://codesandbox.io/s/xr3lhv ### Steps to Reproduce 1. The echarts chart is created in a separate vue file, and then use the vue3-sfc-loader library to dynamically load the vue file and then render it ### Current Behavior The current page is set to trigger=axis, the tooltip is not displayed at this time, there is only a blank div in the page, and renderMode=richText does not work either. Everything works fine when trigger=item. ### Expected Behavior When trigger=axis or item, the tooltip can be displayed normally ### Environment ```markdown - OS:window 10 - Browser: chrome 115.0.5790.102 - Framework: None ``` ### Any additional comments? _No response_