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问题 #326

Closed
jinking opened this issue May 15, 2014 · 4 comments
Closed

饼图label问题 #326

jinking opened this issue May 15, 2014 · 4 comments
Labels

Comments

@jinking
Copy link

jinking commented May 15, 2014

由于数据问题,导致饼图中的一项值非常大,其它值都非常的小,为了避免label重叠和事件交换的不顺畅,所以我调整的minAngle的值,这个时候却发现lableLine的长度仍然是很长,不会随着角度值变化而自动适应。
qq20140515114259
上图中的尽管角度都已经不小了,labelLine长度仍然是超长,这个不太合理

@kener kener added bug labels May 15, 2014
@kener
Copy link
Contributor

kener commented May 15, 2014

so nice!谢谢反馈

@jinking
Copy link
Author

jinking commented May 15, 2014

我看了下源码,在占比小于4的时候,就可能扩大或缩小绘制label的长度。在这,还有个地方不合理,就是如果那个几个比较小的label都在0度或者180度附近,照样会照成label重叠。8ce208f0869aa9aa04c297db7bd843c6
希望你们能改价一下算法,比如label的碰撞检测,然后改变labelLine的绘制角度,不要老是水平或垂直(当然这样看起来比较美观),或者更直接点,在特殊情况下将labelLine用三条直线来绘制

@kener
Copy link
Contributor

kener commented May 15, 2014

水平线上的连续小角度是已知问题,核心升级还有很多,等排上计划就做

@kener
Copy link
Contributor

kener commented Sep 28, 2014

fixed

@kener kener closed this as completed Sep 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants