echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Bug] `label.show = false`, but `label` appears when hover

Open wenhai974 opened this issue 3 years ago • 3 comments

Version

5.3.3

Link to Minimal Reproduction

https://codepen.io/littleKoi/pen/jOzJRPK

Steps to Reproduce

  1. When initializing, set label.show = true and labelLayout.hideOverlap = true; this time it behaves normally.

2 Then I use echartsInstance.setOption to modify label.show = false.

  1. and move cursor to hover series, the label appears.

I think when label.show is false,the label should not appear at any time.

Current Behavior

The label.show is false,but label appears when hover

Expected Behavior

I think when label.show is false,the label should not appear at any time. image

Environment

- OS:macOS
- Browser:5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36
- Framework:Vue

Any additional comments?

No response

wenhai974 avatar Aug 23 '22 07:08 wenhai974

Here is EX

bugs demo

wenhai974 avatar Aug 23 '22 07:08 wenhai974

The problem should be that labelLayout.hideOverlap = true is used for the first time, causing problems with the second setOptions

wenhai974 avatar Aug 23 '22 07:08 wenhai974

does this demo help

emphasis: { disabled: true },

other option could be to set empty lable.formatter = ' ' may be for series

praful-hunde avatar Sep 21 '22 15:09 praful-hunde