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

当比例较小的数据集中在一起时(即使只有两三个数据),文字重叠 #4

Open
su1216 opened this issue May 5, 2018 · 9 comments

Comments

@su1216
Copy link

su1216 commented May 5, 2018

No description provided.

@wuseal
Copy link
Owner

wuseal commented May 5, 2018

那怎么办呢

@su1216
Copy link
Author

su1216 commented May 5, 2018

折线展开,根据条目数量与密集程度来计算位置. 文字区域添加点击事件. 大概应该这样吧

@wuseal
Copy link
Owner

wuseal commented May 5, 2018

请问你的意思是饼块密集的时候
错位显示文字,还是点击饼块后再弹出显示文字呢

@su1216
Copy link
Author

su1216 commented May 5, 2018

饼块密集的时候,错位显示文字

@su1216
Copy link
Author

su1216 commented May 5, 2018

但是希望文字区域本身也是可点击的,点击之后,相应的饼图部分延伸出一块

@wuseal
Copy link
Owner

wuseal commented May 5, 2018

想法可以的,但是小数据饼块过多的时候要显示所有小饼块显示还是会有问题的,错位也有个限度,当错位过大的时候,显示就可能显示不全文字啦。

@su1216
Copy link
Author

su1216 commented May 5, 2018

但是小数据饼块有个三五个连续的应该不至于有问题, 这种情况也比较常见

@wuseal
Copy link
Owner

wuseal commented May 5, 2018

嗯,不考虑极端类的情况应该是ok的,可以错位显示下。

@wuseal
Copy link
Owner

wuseal commented May 5, 2018

小伙可以直接改源代码,ok了欢迎你提交pullrequest ,后面我打算用kotlin把这个项目重构下。

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

No branches or pull requests

2 participants