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

New aligment for x axis ticks #10105

Closed
Talla2XLC opened this issue Jan 27, 2022 · 1 comment · Fixed by #10106
Closed

New aligment for x axis ticks #10105

Talla2XLC opened this issue Jan 27, 2022 · 1 comment · Fixed by #10106

Comments

@Talla2XLC
Copy link
Contributor

Talla2XLC commented Jan 27, 2022

Feature Proposal

In case if chart have only 2 ticks on horizontal axis many users preffer to aling this ticks: 'start" for first (left) tick and 'end' for last (right) tick, otherwise they will go out of bounds:
image

To do so I modified chart,js core adding new align type for options.scales['x'].ticks namespace which named 'left-right'.
image

I am ready to upload this correction via pull request if you don`t mind

Possible Implementation

Adding new align type 'left-right' for options.scales['x'].ticks namespace described in pull request: #10105

@etimberg etimberg linked a pull request Feb 12, 2022 that will close this issue
@etimberg
Copy link
Member

Done in #10106

@etimberg etimberg added this to the Version 3.8.0 milestone Feb 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 a pull request may close this issue.

2 participants