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

Slice arcs that are larger than 180 degrees will overlap previously drawn slices #4

Open
bar10 opened this issue Aug 24, 2016 · 0 comments

Comments

@bar10
Copy link

bar10 commented Aug 24, 2016

If a piechart has a large slice that takes up more than 50% of the piechart the filling of the arc shape might overlap previous slices.

It can be solved by checking if the to be drawn slice has a start and end difference > 180 in the _drawSlice function. If so I divide the slice in 2 parts and draw those using the same _drawSlice function.

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

1 participant