apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser

Home Page:https://echarts.apache.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] 多图表联动,如果x轴不完全一样,tooltip异常

huihui925 opened this issue · comments

Version

^5.5.0

Link to Minimal Reproduction

Steps to Reproduce

通过echarts.connect 设置多图表联动后,如果x轴不完全一样,会复现。

Current Behavior

当前结果:x轴如果不完全一样,tooltip显示如图,并不是相同时间,不是想要的结果。
image

Expected Behavior

期望结果:多图联动时,tooltip的x轴时间为一样的

另外请问,多图联动 tooltip时,是根据鼠标在x轴位置判断,还是根据x轴的值判断的呢。

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

@huihui925 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] If the x-axis is not exactly the same, the tooltip is abnormal

This problem seems to happen when there are no exact data on the connected chart. So I believe this is the expected behavior since the nearest data is highlighted when tooltip trigger is axis. Otherwise, what is the expected result?

This problem seems to happen when there are no exact data on the connected chart. So I believe this is the expected behavior since the nearest data is highlighted when tooltip trigger is axis. Otherwise, what is the expected result?

@Ovilia 如果图表上没有确切的数据,能否不高亮显示最近的数据。预期结果 只高亮相同时间的数据