echarts icon indicating copy to clipboard operation
echarts copied to clipboard

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

Open cp548 opened this issue 1 year ago • 2 comments

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

cp548 avatar Jun 24 '24 06:06 cp548

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

helgasoft avatar Jun 25 '24 01:06 helgasoft

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

cp548 avatar Jun 25 '24 03:06 cp548