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

axis label overflow set to false doesn't prevent last label from being adjusted #7475

danielehrhardt opened this issue Dec 1, 2017 · 2 comments


Copy link

@danielehrhardt danielehrhardt commented Dec 1, 2017

Expected behaviour

the Last number (7) should be centered under the line

Actual behaviour

It is a bit positioned to the left

This is how i fixed it. Is there a other solution for this?

                text:last-child {
                    transform: translate(4px, 0);

Live demo with steps to reproduce

Affected browser(s)

Copy link

@KacperMadej KacperMadej commented Dec 3, 2017

Hi @danielehrhardt ,

It's positioned to the left to fit inside of the axis because default labels.overflow option does that.

This should be possible to resolve through setting the mentioned option to false, but it doesn't help.

I will change the issue title to reflect better the problem found unless you have more information about the case or would suggest something else.


Copy link

@danielehrhardt danielehrhardt commented Dec 4, 2017

okay, yes the problem is only when you have one digit.

No i don't have a better suggest.

@KacperMadej KacperMadej changed the title xAxis last Number with one Digit not centered axis label overflow set to false doesn't prevent last label from being adjusted Dec 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants