Cards, Dashboards, Stories

Cards, Dashboards, Stories

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

  • 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.

    1. CASE
    2. WHEN Shape = 'Triangle' THEN 1
    3. WHEN Shape = 'Square' THEN 2
    4. WHEN Shape = 'Circle' THEN 3
    5. WHEN Shape = 'Diamond' THEN 4
    6. ELSE 5
    7. 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

  • 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.

    1. CASE
    2. WHEN Shape = 'Triangle' THEN 1
    3. WHEN Shape = 'Square' THEN 2
    4. WHEN Shape = 'Circle' THEN 3
    5. WHEN Shape = 'Diamond' THEN 4
    6. ELSE 5
    7. 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! **

Welcome!

It looks like you're new here. Members get access to exclusive content, events, rewards, and more. Sign in or register to get started.
Sign In