-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
Ordering on X axis on the distribution bar chart #519
Comments
+1 for this and #525, currently I manually create an extremely small 'order by' metric as the 1st metric... but would be nice to be able to specify one |
Hi verydxz, Thanks for the answer, could you maybe give an example of how you implemented this? You said that you create a extremely small order by metric as the first metric. If i'd add a small order by in the series, i'd lose the values that I have in the X axis right? |
I managed to create the 'order by' metric but had the same issue as @Frituurpanda that I lost the values that I actually wanted to have on the x axis |
We're having the same issue, anyone has any updates on this? |
At this point i still don't have a good solution to this. Aside from using a small custom metric in the database. That's not a good solution though since you'll have to add that for every usecase manually.. |
Please, reopen this issue as it is not solved. After #1379, labels are sorted only alphabetically. In case of numeric labels the resulting order is wrong, e.g. 1, 10, 2, 21, 3 instead of 1, 2, 3, 10, 21. |
True, have worked around this issue by setting a custom metric in the database to sort based on that. Not really a scaleable solution but it works for my usecase.. |
I have the same problem. |
@Frituurpanda @vera-liu I also have the same problem. |
I got the same problem @vera-liu |
Still an issue, and with the limitation of running multiple queries (creating temp tables and then selecting from them) being an issue, read: it doesn't work - this is an issue. |
@iasmini What's the plot you selected? Thank you :-) |
Version: {"GIT_SHA": "", "version": "0.17.1"} |
For me it still does only sort alphabetically.
For example: it does not work when ordering months given as strings or numbers. I think it would be a great improvement to customize the exact column order manually or even change the column labels. |
I am facing same issue now with Superset 1.0.1 and Bar Chart (cannot find Distributed Bar Chart any more. |
still after checking sort bar checkbox,it is not sorting bar graph in apache superset |
Regarding box plot, there is no Sort bars checkbox and when applying sort by, the query still does not work, even with a specific pre made column/metric to sort |
I think if you open a new issue with a reproducible test case (i.e. using example data and showing the control panel config in question) you'll get a lot more attention on any currently existing issues(s). This thread is 8 years old! |
Hi all,
I have a very simple question that i'm almost embarrassed to ask. I'm not sure how to order on the X axis in Caravel. It is possible to for instance group by certain names and that works fine. Now however, where trying to group by a certain scale.
You can view the problem here:

We now grouped the results in this test based on the scalelevel, which is a integer value.
Is it possible to order those results from zero to eighteen (or any kind or sort)?
Thanks in advance for any kind of help, you guys have been amazing!
The text was updated successfully, but these errors were encountered: