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

饼图中文字和线条的位置 #13

Open
i6u opened this issue Sep 20, 2017 · 1 comment
Open

饼图中文字和线条的位置 #13

i6u opened this issue Sep 20, 2017 · 1 comment

Comments

@i6u
Copy link

i6u commented Sep 20, 2017

大家都是怎么处理的?有什么技巧吗?

@aprz512
Copy link

aprz512 commented Nov 10, 2017

线条起始点 我算的是扇形弧边的中心点 拿到画扇形矩形的中心店,然后根据角度的一半算 sin cos 值,加上去就是弧边的中心点了 文字的位置在线的位置上偏移一下

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