-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Bar ordering #1903
Bar ordering #1903
Comments
@jimmyjones2 could you provide an example of what you mean when you say that terms aggregations for vertical bar charts are ordered lexicographically. I haven't been able to reproduce that. Bar charts for terms aggregations should be ordered by count. For example: |
@jimmyjones2 thank you. This really clears this up. I am adding a bug tag to this and assigning myself. I know whats going on here, so I will submit a pull request soon to fix this. |
The issue here is that in the vislib, x axis values that are numbers are being sorted by their actual x axis value. Since I wrote the code for this, I will apply a fix. Not sure why I added sorting for numbers by their x axis value. I will need to test different scenarios before applying the fix. We can perhaps open another ticket to allow the user to choose an option to sort bars by, but this is a bug since all bars on terms aggregations should be ordered by count as the default. |
…arch sends them. That is, in descending order with the biggest values first. Changed the index which is recorded from the highest to the lowest. So the lowest index position is taken for an x value instead of the highest. In addition, we were not actually sorting by indexed position before, so this fixes that bug.
Allow ordering of bars by count on term aggregation when x axis values are numbers
In Kibana 4 beta 2 Visualize, aggregation by terms, the bars are ordered lexicographically. Kibana 3 had the option to order them by count as well, so the tallest bar was first/last.
The text was updated successfully, but these errors were encountered: