Skip to content

Commit

Permalink
GITBOOK-136: change request with no subject merged in GitBook
Browse files Browse the repository at this point in the history
  • Loading branch information
nurAUmar authored and gitbook-bot committed Aug 16, 2024
1 parent 95cdc43 commit 5674ee1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
8 changes: 4 additions & 4 deletions faq/how-do-i-customize-the-order-of-my-legend.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@ When you create a customized styling rule for each legend entry, you can drag th

1. If applicable, first set the **Color by** tool in the Basic Editor back to "select a field" to turn it off.
2. Use the [element decoration builder](../guides/data-driven-decorations.md#use-decoration-builders-to-create-custom-decorations) (click Decorate Elements in the Basic Editor)to recreate each color coding rule individually. Instead of using **Color by** to automatically color by Type, you would instead create a separate, custom decoration for each possible value in the Type field. Be sure to fill out the **Label for legend** box at the bottom of the decoration builder to make sure rules are added to the legend!
3. Once you've created all the colors, you can drag & drop them in the right order: 

![Cascading decorations](../images/cascading-decorations.gif)

3. After creating all your custom decorations, return to the Advanced Editor and locate the codes generated by Kumu for your custom decorations. Re-arrange these codes by cutting and pasting them in the order that best suits your needs.

<figure><img src="../.gitbook/assets/re-ordering legeng entry via AE.gif" alt="" width="563"><figcaption><p>re-arranging legend entries via advanced editor</p></figcaption></figure>

#### Change the order in the Advanced Editor

Expand All @@ -38,4 +36,6 @@ It's also possible to customize the order of **Color by** color-coded legend ent

In the code above, you can replace `Element Type` with the name of the field you want to color by, and replace `Education`, `Finance`, and `Agriculture` with actual values from your dataset. Replace `red`, `blue`, and `green` with named colors or hex color codes.

The order of your values dictates how the legend appears. Simply rearrange the values in the order you want your legend to appear on the map.

You can add as many color + value combinations as you want to the comma-separated list inside your `categorize()` parentheses.

0 comments on commit 5674ee1

Please sign in to comment.