Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

为什么我关闭了防止重叠还是有一些label没有显示出来了 #9589

Closed
yizhengfeng-jj opened this issue Dec 14, 2018 · 3 comments · Fixed by OpenTMI/opentmi-default-gui#32 or DeviaVir/zenbot#2011 · May be fixed by dyna-dot/iClient-JavaScript-s#1
Labels

Comments

@yizhengfeng-jj
Copy link

yizhengfeng-jj commented Dec 14, 2018

问题

我的echarts图稍微小一点的时候,我们的lable就会有的被隐藏了,这是因为echarts的防重叠机制自动把lable去掉了,可以设置interval:0,来解决这个问题
image
我本以为这样解决了问题 但是我缩小图的时候,确实中间部分不会被隐藏,但是第一个和最后一个也就是周一和周日无论怎么样,都会被影藏

第一次结果

image

分析结果

这个周一,和周日被隐藏了,但是我是不想让与他们讷隐藏的,后来我查了一下,第一个和最后一个要用
showMaxLabel:true,showMinLabeel: true,这个就是在重叠的时候,控制最大,最小的标签显示,于是写上去,确实周一和周日有了,但是中间的周二又少了,难道showMaxLable,showMinLable,interval不能共存么,

第二次结果

image

image

疑惑

难道就没有什么方法,显示全部的标签么,无论图多小,全部显示,就让他重叠,没有这种方法么?

@Ovilia Ovilia added pending We are not sure about whether this is a bug/new feature. waiting-for-help bug and removed pending We are not sure about whether this is a bug/new feature. waiting-for-help labels Dec 14, 2018
@100pah 100pah closed this as completed in cd16113 Dec 18, 2018
@wjhcc2018
Copy link

我也遇到了这个问题,哎

@wmasfoe
Copy link

wmasfoe commented Apr 6, 2023

这问题咋也不解决就关闭了

@realize-me
Copy link

realize-me commented May 11, 2023

我是从这个地址过来的。
image
https://echarts.apache.org/zh/changelog.html

我设置interval:0可以显示所有类目,但是最后一个类目字体颜色被加深了,然后换成最新版本5.4.2后就正常了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
5 participants