Closed kayoch1n closed 2 years ago
@kayoch1n It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
将label
中的show
设为false
即可
Just set label.show
to false
将
label
中的show
设为false
即可 Just setlabel.show
tofalse
Code sample
感谢回复。我一开始没讲清楚,实际上data是业务接口返回的,前端并不知道series数组里具体哪一个的值会比较小,所以也就无法直接让 label.show: false
有两个办法,但都不是隐藏,不知道是否和业务要求冲突。
我的做法是调整坐标轴的z-index让坐标轴不至于被覆盖,同时设置坐标轴刻度标签的底色,勉强还行
Version
5.2.1
Link to Minimal Reproduction
No response
Steps to Reproduce
Current Behavior
如果折线的数据的值非常小、贴近x轴而且使用了label,label就会越过x轴,是否有办法隐藏、不显示这部分label呢?
目前我用了文档里的 hideOverlap 参数,但是这个参数只对比较密集的label起作用,对这里的问题不管用。
Expected Behavior
label越过x轴的情况下,能够自动隐藏
Environment
Any additional comments?
No response