You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Wrong order for grouped bar chart sorting (descending) #4749
changed the title [-]Wrong order for grouped bar chart sorting (descending)[/-][+]Wrong order for bar chart sorting with null values[/+]on Apr 22, 2020
Nice detective work @oshikryu - that part is definitely a bug, we should probably do something like we do in dash-table and always sort null / invalid values at the end, regardless of sort order. I think though that your original use case can be solved without transforms, using categoryorder: 'total descending'https://plotly.com/javascript/reference/#layout-xaxis-categoryorder
changed the title [-]Wrong order for bar chart sorting with null values[/-][+]Wrong order for grouped bar chart sorting (descending)[/+]on Apr 22, 2020
I will open up a separate issue for the simple case of non-grouped bar chart sorting with null values. The original case of grouped bar sorting still remains unresolved
I've updated the example for a much simpler reproduction of the bug. I believe it's either malformed transform or something weird with sorting choosing the first target in a dataset
Activity
[-]Wrong order for grouped bar chart sorting (descending)[/-][+]Wrong order for bar chart sorting with null values[/+]oshikryu commentedon Apr 22, 2020
It appears the base case is boiled down to null values improperly being sorted
https://codepen.io/oshikryu/pen/MWaJgLx
alexcjohnson commentedon Apr 22, 2020
Nice detective work @oshikryu - that part is definitely a bug, we should probably do something like we do in
dash-tableand always sort null / invalid values at the end, regardless of sort order. I think though that your original use case can be solved without transforms, usingcategoryorder: 'total descending'https://plotly.com/javascript/reference/#layout-xaxis-categoryorder[-]Wrong order for bar chart sorting with null values[/-][+]Wrong order for grouped bar chart sorting (descending)[/+]oshikryu commentedon Apr 22, 2020
I will open up a separate issue for the simple case of non-grouped bar chart sorting with null values. The original case of grouped bar sorting still remains unresolved
oshikryu commentedon May 19, 2020
I've updated the example for a much simpler reproduction of the bug. I believe it's either malformed transform or something weird with sorting choosing the first
targetin a datasetoshikryu commentedon May 19, 2020
I believe this issue is related to #4711
emilykl commentedon Aug 27, 2026
Closing this issue because
transformswas removed from the API in #7240.