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

Comments

Projects
None yet
4 participants
@jarben
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

@pissang pissang added the enhancement label Mar 21, 2017

@Ovilia Ovilia self-assigned this Mar 21, 2017

@jonavila

This comment has been minimized.

Show comment
Hide comment
@jonavila

jonavila Mar 21, 2017

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.

Contributor

jonavila commented Mar 21, 2017

@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

This comment has been minimized.

Show comment
Hide comment
@jarben

jarben Jul 27, 2017

Contributor

Awesome thanks!

Contributor

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