Is there a way to edit the way the legend is sorted?

I have a stacked bar chart with three categories, s1, s2, and s3. I want to order the legend so that the category on the bottom of the legend is the same as the category on the bottom of the chart. So instead of this:

I would like this:

Is this possible?

Hi @dlyden ,

So currently you cannot natively adjust or sort the legend for a visual. One workaround I have recommended in the past is to create your own legend using a table visual. This way, you can apply a ranking to your values which will allow you to sort it. Moreover, you can use conditional formatting to present both an icon and a color that is associated to that field in the visual. Lastly, you will place the table over where the legend is supposed to be on your visual. It is not ideal, but this route gives you more control over how your legend looks.

1 Like