Order legend items

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

1 Like

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: