I'm trying to order the response code labels in my stacked bar graph to be descending alphabetical, but it doesn't appear to be working properly. Further, when I select 'ascending', the response codes are re-ordered in some other non-alphabetical order. Please see screenshots of both cases below.
I believe this is a bug, as I've had other issues with alphabetical sorting in the past. It seems to be sorting on some other field or metric.
@Dennis1, welcome to the community!
In order to help you out, could you please let me know:
What version of the stack are you using?
How are you running kibana (from source, os etc)
What your index pattern mappings are for the data you're visualizing
In this case, your visualization is doing the date aggregation first and then splitting the terms within each date, resulting in a sort within each bucket. The legend displays a rather naive concatenation of these sorted results and I have a feeling that's what's happening here.
Could you try swopping the order in which you are doing the aggregations? In other words, bucket with a split series by terms first and then use a date histogram on the X-axis.
I tested my recommendation using the kibana_sample_data_logs index as shown in the screen shot below:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.