-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Disable automatic sorting of the slices in the sunburst #4823
Comments
This was also asked for on the forum https://community.plotly.com/t/order-of-the-sectors-in-sunburst-plot/39182. Also see #4728 which is related. |
+1 for this request so that plotly sunburst does not sort (apply magic) on the data provided. I'm new to the plotly code base, but will try to find the code where sorting happens. |
In ./traces/sunburst/calc.js, sorting happens at
Making that line conditional was solving my use case (no sorting). Will try to add a configuration option, in line with branchvalues, to make this configurable. |
Is there a preference for a name of the layout attribute to disable sorting on values? One option is to reuse +sort+, an attribute available for the pie chart. Another option is to make it sunburst specific, like sunburstnosort. |
I think you could simply reuse sort: extendFlat({}, pieAttrs.sort, {
dflt: true
}) |
Please note the |
Resolved by #5164. |
Hi guys!
Would it be possible to add an option that disables the automatic sorting of the slices in the sunburst?
Thank you in advance!
The text was updated successfully, but these errors were encountered: