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

ddarikpa  于 5个月前  发布在  Echarts
关注(0)|答案(1)|浏览(45)

Version

5.4.2

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

eufgjt7s

eufgjt7s1#

@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

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

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

Any additional comments?

No response

相关问题