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 alignment with labelRotationAngle #3437

Closed
amolloy opened this issue May 1, 2018 · 2 comments
Closed

Axis label alignment with labelRotationAngle #3437

amolloy opened this issue May 1, 2018 · 2 comments

Comments

@amolloy
Copy link

amolloy commented May 1, 2018

I want to have my x axis labels rotated 45 degrees, but want them to be aligned so the left edge of the text is lined up with the axis line. Currently, if I set labelRotationAngle to 45, the labels are rotated as expected, but are still centered on the line, like this:

xaxisrotationoffset

What I'd like is for it to look like this:

xaxisrotationoffsetwhatiwant

Sorry if I'm missing something obvious, but I didn't see a way to accomplish this. Thanks!

@liuxuan30
Copy link
Member

have you tried centerAxisLabelsEnabled? If it's not working, then i guess it's just by design.
You can modify drawLabels and maybe a PR for us

@erfanwakka
Copy link

I have the same problem

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

No branches or pull requests

3 participants