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

ff29svar  于 2022-11-02  发布在  Echarts
关注(0)|答案(3)|浏览(185)

Version

5.3.3

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.

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*
vqlkdk9b

vqlkdk9b2#

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

fkaflof6

fkaflof63#

does this demo help

emphasis: {
disabled: true
},

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

相关问题