apache / echarts

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

echarts 5.1.2 version, the hover effect、 mouse click event callback parameters of themeRiver-basic are incorrect #15629

Closed wh2017 closed 1 year ago

wh2017 commented 3 years ago

Version

5.1.2

Reproduction link

https://echarts.apache.org/examples/zh/editor.html?c=themeRiver-basic

Steps to reproduce

1.hover效果不正确:hover河流图,鼠标移动几次,即可重现

2.鼠标事件:添加:myChart.on('click', (event) => console.log(event)),回调参数中的data数据不正确

What is expected?

1.hover效果:展示鼠标hover的一条流

2.鼠标事件:返回正确的回调参数

What is actually happening?

1.hover效果不正确:hover一条流,会有两条流高亮

image

2.鼠标事件:回调参数不正确

image

echarts-bot[bot] commented 3 years ago

Hi! We've received your issue and please be patient to get responded. 🎉 The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that it contains a minimum reproducible demo and necessary images to illustrate. Otherwise, our committers will ask you to do so.

A minimum reproducible demo should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.

You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.

If you are interested in the project, you may also subscribe to our mailing list.

Have a nice day! 🍵

echarts-bot[bot] commented 3 years ago

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

TRANSLATED
**BODY** ### Version 5.1.2 ### Reproduction link [https://echarts.apache.org/examples/zh/editor.html?c=themeRiver-basic](https://echarts.apache.org/examples/zh/editor.html?c=themeRiver-basic) ### Steps to reproduce 1.hover effect is incorrect: hover river map, mouse movement a few times, you can reproduce 2. Mouse event: Add: myChart.on ('click', (event) s > console .log (event), the data data in the callback parameter is incorrect ### What is expected? 1.hover effect: Shows a stream of mouse hover 2. Mouse event: Returns the correct callback parameters ### What is actually happening? 1.Hover effect is incorrect: hover one stream, there will be two streams highlighted ![image](https://user-images.githubusercontent.com/25954808/131300627-d7358914-a443-49b0-b3ec-f895fc440881.png) 2. Mouse event: The callback parameter is incorrect ![image](https://user-images.githubusercontent.com/25954808/131300549-95fbae31-f108-406e-88be-efa0dfd599d4.png)
github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.

github-actions[bot] commented 1 year ago

This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!