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

Comments

Projects
None yet
2 participants
@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

This comment has been minimized.

Show comment
Hide comment
@KacperMadej

KacperMadej Dec 3, 2017

Contributor

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/

Contributor

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

This comment has been minimized.

Show comment
Hide comment
@danielehrhardt

danielehrhardt Dec 4, 2017

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

No i don't have a better suggest.

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 from xAxis last Number with one Digit not centered to axis label overflow set to false doesn't prevent last label from being adjusted Dec 5, 2017

@KacperMadej KacperMadej added Bug and removed Pending reply labels Dec 5, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment