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 any text #5309

Closed
jarben opened this issue Mar 20, 2017 · 2 comments
Closed

Rotate any text #5309

jarben opened this issue Mar 20, 2017 · 2 comments

Comments

@jarben
Copy link
Contributor

jarben commented Mar 20, 2017

Version: 3.4.0

It would be nice if any text can be rotated similarly to axis label. This would ideally apply to all labels and graphic:text.

This would be helpful for adapting longer texts to chart layout, example:
image

Currently shows as:
image

@Ovilia Ovilia self-assigned this Mar 21, 2017
@jonavila
Copy link
Contributor

@jarben I had requested this for the bar charts a while back: #1346 (comment)

As you suggested, it would be even better if it's available to all text. Additionally, it would be great to expose the methods that can calculate the text length and bar length in px. With that info, you can add logic to either place the labels inside or outside of the bars, for instances where the label is longer than the bar length.

@jarben
Copy link
Contributor Author

jarben commented Jul 27, 2017

Awesome thanks!

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

4 participants