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

Rotate Axis labels #29

Open
dvago opened this issue May 9, 2019 · 1 comment
Open

Rotate Axis labels #29

dvago opened this issue May 9, 2019 · 1 comment

Comments

@dvago
Copy link

dvago commented May 9, 2019

First of all, thanks for this great library.

I was wondering if there is a way to set the rotation of the labels of the axis to avoid the labels to clash to each others.

I saw a solution using the interval property but that property removes some of the labels.

Please have a look at the example below to understand better what I'm trying to achieve.

Screenshot 2019-05-09 at 09 22 12

My first approach was to play with css on the SVG elements but apparently things like:

svg > g:nth-child(2) text {
    transform: rotate(-45deg);
    transform-origin: center bottom;
}

transform the whole group of labels rather than one by one

@Mayank-jain34
Copy link

+1 for this

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

2 participants