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

XAxis rotate labels #47

Closed
namxam opened this issue Feb 12, 2018 · 2 comments
Closed

XAxis rotate labels #47

namxam opened this issue Feb 12, 2018 · 2 comments

Comments

@namxam
Copy link

namxam commented Feb 12, 2018

Due to the ordering of styles on labels, it is not possible to set transformations. They are overriden by the internals.

In our case we would like to rotate the text labels to have more space for its contents.

Have a look here:

What do you think, would it make sense to reorder the attributes? Or at least to not return an empty array, but null / undefined. I think this would be than ignored and would only break transforms on PIE charts.

@JesperLekland
Copy link
Owner

I see your problem. Version 3.0 actually replaces the XAxis for an react-native-svg based one. Meaning that regular transforms won't work, but svg ones should. Keep an eye out for 3.0!

@namxam
Copy link
Author

namxam commented Feb 12, 2018

Nice. For now we reduced the resolution of our data, so we have more space for labels 😄

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