How to show the series list in order (largest to smallest on a symbol line graph?

Hi all,

Just a quick question on using a symbol line graph, is there any way to have the key shown in the same order as the data is presented on the chart? I.e. in the example below I'd like the triangle to be at the top of my list, then the square etc.

Thanks in advance!

Best Answer

  • ArborRose
    ArborRose Coach
    Answer ✓

    I don't believe Domo provides any way to manually reorder legend items aligned with your data. However, you could possibly "cheat" your way into it by creating a beast mode calculation that assigns a numeric value according to the symbol for each category.

    CASE
    WHEN Shape = 'Triangle' THEN 1
    WHEN Shape = 'Square' THEN 2
    WHEN Shape = 'Circle' THEN 3
    WHEN Shape = 'Diamond' THEN 4
    ELSE 5
    END

    Name it something like ShapeOrder or OrderBy. Then add the calculated field as a sort option.

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

Answers

  • ArborRose
    ArborRose Coach
    Answer ✓

    I don't believe Domo provides any way to manually reorder legend items aligned with your data. However, you could possibly "cheat" your way into it by creating a beast mode calculation that assigns a numeric value according to the symbol for each category.

    CASE
    WHEN Shape = 'Triangle' THEN 1
    WHEN Shape = 'Square' THEN 2
    WHEN Shape = 'Circle' THEN 3
    WHEN Shape = 'Diamond' THEN 4
    ELSE 5
    END

    Name it something like ShapeOrder or OrderBy. Then add the calculated field as a sort option.

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