Arrangement in Bar Graph

Hello, is there a way to rearrange the order of legend in Bar Graph? My card looks like this:

Tr - bottom

Ac - middle

Ro - Top

I want to rearrange the order like this:

Ro - Bottom

Ac - Middle

Tr - Top

Thank you.

Best Answer

  • GrantSmith
    GrantSmith Coach
    Answer ✓

    You can use a beast mode to define a custom sort value to use in the sorting section of your chart

    CASE WHEN `field` = 'Ro' THEN 1
    WHEN `field` = 'Ac' THEN 2
    WHEN `field` = 'Tr' THEN 3
    END
    

    **Was this post helpful? Click Agree or Like below**
    **Did this solve your problem? Accept it as a solution!**

Answers

  • GrantSmith
    GrantSmith Coach
    Answer ✓

    You can use a beast mode to define a custom sort value to use in the sorting section of your chart

    CASE WHEN `field` = 'Ro' THEN 1
    WHEN `field` = 'Ac' THEN 2
    WHEN `field` = 'Tr' THEN 3
    END
    

    **Was this post helpful? Click Agree or Like below**
    **Did this solve your problem? Accept it as a solution!**
  • Jez
    Jez Member

    @GrantSmith this works. Thank you!