Skip to content

How to Rotate Labels in a Sunburst Chart #1661

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

Closed
parthhhh opened this issue Jul 10, 2019 · 7 comments
Closed

How to Rotate Labels in a Sunburst Chart #1661

parthhhh opened this issue Jul 10, 2019 · 7 comments

Comments

@parthhhh
Copy link

parthhhh commented Jul 10, 2019

There seems to be no way of rotating the text inside of the sunburst chart. Is there a way of fixing all the text orientation for the labels radially? So it would look like this:
Capture

@nicolaskruchten
Copy link
Contributor

Unfortunately the underlying plotly.js library doesn't have a feature for this at the moment. I would encourage you to create an issue in our sibling repo at https://github.com/plotly/plotly.js/issues/new

Thanks!

@parthhhh
Copy link
Author

Thank you! Posted in js repo.

@Piplopp
Copy link

Piplopp commented Jan 9, 2020

Hello, the plotly.js library now have this feature available (#3590), it uses the "insidetextorientation" with the values auto|horizontal|radial|tangential

@nicolaskruchten
Copy link
Contributor

@Piplopp yep, we're working on the Python 4.5 release, which will support this.

@Kheirlb
Copy link

Kheirlb commented Jan 14, 2020

Hello. I am using "insidetextorientation": 'radial' and it works super well. However I want to change my orientation to horizontal when I click and open a parent. Is this possible?

EDIT: Nevermind... I did this thing called coding and I figured out how to use on('plotly_click') and javascript.

@sarnobat
Copy link

sarnobat commented Aug 7, 2022

Thank you for requesting this. I'm benefitting from this being discussed 3 years ago.

@gvwilson
Copy link
Contributor

Hi - we are currently trying to tidy up Plotly's public repositories to help us focus our efforts on things that will help users most. Since this issue has been sitting for several years, I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our backlog. Thanks for your help - @gvwilson

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

6 participants