apache / echarts

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

[Bug] Sankey chart - after using setOption in mouseover event handler, node highlight stops working #20067

Open cp548 opened 1 month ago

cp548 commented 1 month ago

Version

5.5.0

Link to Minimal Reproduction

https://codesandbox.io/s/basic-sankey-forked-c8dvs5?file=/index.js

Steps to Reproduce

i'm trying to update the node labels on hover, try setoption in mouseover event handler

Current Behavior

after using setoption in mouseover event handler, it stops highlighting the nodes and related links

Expected Behavior

highlight should work

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

helgasoft commented 1 month ago

It seems node highlight is the default mouseover behavior. If you overwrite mouseover then the default functionality is lost.

cp548 commented 1 month ago

@helgasoft it is working fine if we do overwrite the mouseover behaviour, but after adding the setoption , it stops working