-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Rotate X-Axis Labels 90 degrees #173
Comments
Definitely. I think it'd be great to have a choice of horizontal, diagonal or vertical labels. |
Any idea what that would take or where I'd have to look to poke at that part of the code? |
There's a drawXAxis method (or something similar - I don't have the code in There's also some code somewhere that calculates the height of the x-axis Olly On 27 Jan 2013, at 14:41, James Seigel notifications@github.com wrote: Any idea what that would take or where I'd have to look to poke at that — |
There was a simplistic example in my rounded corners PR but it really wasn't very comprehensive. Seigel, you are welcome to take a look as a starting point at least. https://github.com/oesmith/morris.js/pull/145/files Diagonal labels could be interesting as well since the vertical ones hit the bottom of the graph area pretty quickly. If I find the time I would like to contribute but agree that it looked like some refactoring was necessary. |
Diagonal and vertical labels are now in master, see the code in PR #239. |
i want to move my x-axis to 90 degree can any one help ? |
xLabelAngle: 90, |
Just wondering if it was interesting to anyone else to be able to rotate the x-axis labels 90 degrees to be able to display longer ones.
Thanks!
James
The text was updated successfully, but these errors were encountered: