plotly.py icon indicating copy to clipboard operation
plotly.py copied to clipboard

How to Rotate Labels in a Sunburst Chart

Open parthhhh opened this issue 6 years ago • 6 comments

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

parthhhh avatar Jul 10 '19 23:07 parthhhh

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!

nicolaskruchten avatar Jul 11 '19 15:07 nicolaskruchten

Thank you! Posted in js repo.

parthhhh avatar Jul 11 '19 21:07 parthhhh

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

Piplopp avatar Jan 09 '20 10:01 Piplopp

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

nicolaskruchten avatar Jan 09 '20 18:01 nicolaskruchten

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.

Kheirlb avatar Jan 14 '20 04:01 Kheirlb

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

sarnobat avatar Aug 07 '22 04:08 sarnobat