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

Rotated labels - xAxis #1764

Closed
sebastianbochan opened this issue Apr 25, 2013 · 3 comments
Closed

Rotated labels - xAxis #1764

sebastianbochan opened this issue Apr 25, 2013 · 3 comments

Comments

@sebastianbochan
Copy link
Contributor

Rotated labels overlap xAxis title.

http://jsfiddle.net/x6GkV/1/

Interactive demo: http://jsfiddle.net/highcharts/LkvMZ/

@TorsteinHonsi
Copy link
Collaborator

The workaround is to increase the axis title margin: http://jsfiddle.net/highcharts/x6GkV/2/

@TorsteinHonsi
Copy link
Collaborator

The problem is that as the labels are rotated, the distance to the axis line increases until when rotated 90 degrees, it is one line height. The correct position would probably be that the text was moved one line height up, both to comply to the xAxis.labels.y setting and to move away from the title. The same problem is observed when disabling the xAxis.title altogether. Then we would expect the labels to draw within the spacingBottom setting, but they are not.

@TorsteinHonsi
Copy link
Collaborator

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

No branches or pull requests

2 participants