As title suggest, I'm trying to understand if there any ways to sort bars charts,
Say if I have Critical, High, Medium & Low and if I try alphabetical descending or ascending I'm not achieving this order. Any help would be appreciated. Thanks 
As title suggest, I'm trying to understand if there any ways to sort bars charts,
Say if I have Critical, High, Medium & Low and if I try alphabetical descending or ascending I'm not achieving this order. Any help would be appreciated. Thanks 
Thanks Matw. My requirement was sort in the below order using terms.
I found two ways to achieve this and one is by selecting Aggregation as Filters and filtering in that particular order which I want.
And second one is assigned weight to data based by sorting preference and created scripted field for it. Then use the new scripted field in aggregations to sort it.
Critical -> 256
High -> 128
Medium -> 16
Low -> 4
Thx for sharing you solution! I that you wanted to share alphabetically, but now it makes sense.
© 2020. All Rights Reserved - Elasticsearch
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.