-
Notifications
You must be signed in to change notification settings - Fork 19.6k
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 重叠问题 #187
Comments
已知的问题,确实目前我也没想好怎么解决弯曲怪怪的,现阶段的做法就是你说的动态lineLength,弄个方法根据value取反向大小就好,值越大可以越短,因为不会有遮挡,值越小越长,尽量自己走开 |
fixed |
how to resolve this problem? |
Has not been fixed?It should ok in current version. |
upgrade |
Use a function as the label.formatter, do this login in the function. Just calculate the percentage from your own option, it's easy. |
你好!为了解决label重叠的问题 按照你的建议 我下载了最新的Echarts版本(2.1.10) 用的是"标签式单文件引入" 设置labelLine : { show : false }报错 而设置labelLine : { show : true }则是正确显示 为什么 ? |
谢谢反馈,bug!下个版本修复。 |
刚发现新版的改过了~~ |
最近在使用中发现,饼图中,如果相邻两块数据比例值较小时,两块的label会重叠在一起,看着很不舒服,如下图
如果调整 labelLine 倒是可以简单解决,但由于数据的不确定性,这个算法会比较复杂和难以维护 ,比如
HighCharts中,是不会出现这样的问题,咱们是不是也可以做一下类似 文字的碰撞检测,或者弯曲展示等方式 优化一下? 谢谢啦
The text was updated successfully, but these errors were encountered: