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

Don't draw points outside chartArea #9443

Merged
merged 1 commit into from
Jul 20, 2021
Merged

Conversation

kurkle
Copy link
Member

@kurkle kurkle commented Jul 20, 2021

Ref: #9372 (comment)

Only draw the points that are at least partially inside chartArea. I included the only partially inside area points so the zoom/pan use cases are smooth.

Fixture without the fix:
image

And with the fix:
image

The area is only applied if its provided to the draw function, so this should not break any custom use cases of the point element.

@etimberg etimberg added this to the Version 3.5.0 milestone Jul 20, 2021
@etimberg etimberg merged commit 566d722 into chartjs:master Jul 20, 2021
@kurkle kurkle deleted the points-out-area branch July 20, 2021 19:53
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.

2 participants