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

Add includeBounds option for cartesian ticks #9020

Merged
merged 5 commits into from May 7, 2021

Conversation

kurkle
Copy link
Member

@kurkle kurkle commented May 4, 2021

This behavior is not suited for all use cases, in particular with the chartjs-plugin-zoom and the fact that when zoomed, the min / max values can vary greatly in precision compared to other ticks.

Fixes chartjs/chartjs-plugin-zoom#342

Copy link
Member

@etimberg etimberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good, would be good to have a test. Types need to be updated as well

@kurkle
Copy link
Member Author

kurkle commented May 4, 2021

Code looks good, would be good to have a test. Types need to be updated as well

Good calls, it does not actually even work currently :)

etimberg
etimberg previously approved these changes May 4, 2021
@etimberg
Copy link
Member

etimberg commented May 5, 2021

Is this ready to go?

@kurkle
Copy link
Member Author

kurkle commented May 5, 2021

It could be separated to min/max, as it can be scriptable and in that case it would be more versatile. But there is no order for such a thing, so it's ready as far as I'm concerned.

@kurkle
Copy link
Member Author

kurkle commented May 5, 2021

Actually, I'm going to add a fix for #9025 while at it.

@etimberg etimberg linked an issue May 5, 2021 that may be closed by this pull request
@etimberg etimberg added this to the Version 3.3 milestone May 5, 2021
@etimberg
Copy link
Member

etimberg commented May 7, 2021

Is there more to do on this, or is it good to merge?

@kurkle kurkle merged commit 7c3a412 into chartjs:master May 7, 2021
@kurkle kurkle deleted the min-max-optional branch May 30, 2021 05:35
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.

Tick Collision #8983 too aggressive when Font Rotation is used y-Axis is shaking when zooming or paning
2 participants