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

fix: Always draw full arcs and borders for doughnut slices #10806

Merged

Conversation

gibson042
Copy link
Contributor

Fixes #10801

The root cause was bad behavior when floating-point arithmetic just pushed a single slice into self-overlap territory and drawFullCircleBorders does not account for offset like pathArc does, resulting in borders drawn in the wrong location. This PR updates drawBorder to rely on pathArc instead, although I suspect further improvements could fully unify everything and draw arcs and borders together.

@kurkle kurkle added this to the Version 4.0 milestone Nov 12, 2022
@kurkle kurkle merged commit 8948750 into chartjs:master Nov 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pie Chart hoverOffset bugs on a specific value
4 participants