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

Closed
danielehrhardt opened this issue Dec 1, 2017 · 2 comments
Labels

Comments

@danielehrhardt
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?

.highcharts-axis-labels{
                text:last-child {
                    transform: translate(4px, 0);
                }
            }

Live demo with steps to reproduce

http://jsfiddle.net/r3hkqL3j/

Affected browser(s)

@KacperMadej
Copy link
Contributor

@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.

Demo: http://jsfiddle.net/r3hkqL3j/1/

@danielehrhardt
Copy link
Author

@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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants