Hi there,
How to order the legend items displayed on graphs? I used graphs.
I would like legend items ordered as A1 A2 B1 B2
Thanks
Hi there,
How to order the legend items displayed on graphs? I used graphs.
I would like legend items ordered as A1 A2 B1 B2
Thanks
Hello, what do you mean you used graphs?
Unfortunately you cannot order the items for terms aggregation, but if you know the values of the field, you could instead use filters aggregation (it's slower than terms performance-wise) and then you can control the order:
Hello Marta,
Thanks for your answer.
I can't found the way you did your example.
I have choosen 'Aggregation based', then 'Vertical bar'. As a X bucket, I select 'Date histogram'. Then 'Split series', I create my 4 filters. if filters are created in reverse order (B2, B1, A2, A1), display looks correct. I will continue testing.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 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.