Adding a legend to your map is an important step to make sure your readers can easily understand your decorations. There are a number of different ways to add and remove legend entries—this guide will explain all of them!

Add legend entries through the Basic Editor

There are two ways to create your legend from the Basic Editor.

  1. Using the Color by
  2. Using the decoration builders

Color by is a great way to get a legend up and running quickly, and the decoration builders are useful when your legend needs to be a bit more customized. Read on to learn more about both options.

Use the Color by tool to create a legend

When you use the Color by tool in the Basic Editor, Kumu will automatically create your color legend, adding an item for each possible value in the field you're coloring by. For example, this map is colored by Element Type using the bujumbra scale:

bujumbra color by

This automatic legend feature also works when you're using Color by to add flags.

Note that the Color by tool will stop adding legend entries after it runs out of colors in its default color palette (seven colors). To make sure all your field values get included in the legend, you might need to click the expand icon and choose a larger color palette. If the Color by tool is including some unwanted field values in your legend, try deleting the unwanted values.

One more caveat about Color by: when you're using this tool, it's not possible to remove, replace, or edit individual colors from the color palette. To fully customize the colors in the palette, you can follow the guide to define your own palette. Alternatively, you can read through the next section in this guide to learn how to create a custom legend without using the Color by tool.

Use the decoration builders to add legend entries

To add custom colors and icons to your legend, use the element and connection decoration builders. Once you build out your decoration rule, fill in the "Label for Legend" box at the bottom of the decoration builder, and Kumu will add your decoration to the legend.

label for legend box

You can use the decoration builders to add many different kinds of items to your legend—for example, icons to indicate that elements or connections are being scaled in size:

Network map with cool legend entries

For a full list of legend icons you can add, jump to the legend reference.

The legend entries added from the decoration builder will be listed in the Basic Editor among other existing decorations. Decorations that are labelled with bold text are the ones that appear in your legend, and you can click the pencil icon next to a decoration to edit it and its legend label.

Existing decorations for network map

Removing legend entries

Legend entries added using the Color by tool can only be removed by defining your own color palette or deleting the field values that you don't want to see.

If you used the decoration builder to add a legend entry, you can go to the existing decorations section, click the pencil icon next to the decoration, and clear out the Label for Legend box. This will remove the legend item, but keep the decoration—if you'd rather delete both, you can click the delete icon in the existing decorations section.

Some legend entries get added automatically when you apply different templates. Here's how to delete those entries:

  • For Person and Organization entries (stakeholder template), and Stock, Flow, Variable, Source, and Sink entries (stock and flow template), follow the guide to delete field values. Delete these values from the Element Type field.
  • For Adds to / same direction and Subtracts from / opposite direction entries (causal loop template), follow the guide to delete field values. Delete these values from the Connection Type field.
  • Opposite entry (system template): Open your default settings, and, in the Template settings section, clear out the "Opposite connection label" box and click SAVE at the bottom.

Add legend entries through the Advanced Editor

If you're working on decorations in the Advanced Editor, you can add a comment above a decoration to tell Kumu that it should be included in the legend. The syntax is:

/* entry-type: Entry Label */

Replace entry-type with either elements or connections to tell Kumu what your decoration rule applies to. Replace Entry Label with the text that will appear in the legend. Your decoration rule should start on the next line down in the Advanced Editor.

Here's a working example from a decoration in one of the screenshots above:

/* elements: Authors, sized by number of articles written */
author {
  color: #918dc2;
  scale: scale("total articles", 0.5, 3);
  border-width: 1;
  border-color: #fcfcfa;

Note that you can combine multiple decoration rules into one block of code, and Kumu's legend will combine many of your rules into one legend icon. The code above will create the following entry in the legend, complete with color, border color, and scale:

fancy legend combo

For a full list of legend icons and how to use them from the Advanced Editor, jump to the legend reference.

Legend reference

Below is a list of all the icons you can add to your legend, as well as instructions on how to access the icons from the Basic and Advanced Editors.

Legend icon Basic Editor workflow Advanced Editor code snippet
element scale icon Decorate elements >
Change size >
Scale elements by a field
element {
    scale: scale("betweenness", 0.5, 3);
element color icon Decorate elements >
Change color >
Set a fixed element color
element {
    color: #34b3eb;
element shadow color icon Decorate elements >
Add shadow >
element {
    shadow-color: #34b3eb;
element bullseye color icon Decorate elements >
Add bullseye >
element {
    bullseye-color: #34b3eb;
element border color icon None
element {
    border-color: #34b3eb;
connection scale icon Decorate connections >
Change size >
Scale connection widths by field
connection {
    scale: scale("strength", 0.5, 3);
connection color icon Decorate connections >
Change color >
Set a fixed connection color
connection {
    color: #34b3eb;
connection dashed icon Decorate connections >
Change style >
connection {
    style: dashed;

results matching ""

    powered by

    No results matching ""