Comment on page
Shapes are are a useful visual tool when you need to differentiate between different types of elements. Kumu has several tools you can use to customize elements' shapes—this guide will help you pick which tool is the right one for your use case:
If you just need to assign shapes to a handful of elements, we recommend using the direct decoration toolbar. Hover over any element, then click the Size/Shape icon , and pick a shape from the dropdown.
shapes direct decoration
To assign a shape to a specific selection of elements, use the element decoration builder.
decoration builder shapes
The quickest way to assign shapes to all elements automatically based on their profile data is the Shape By tool. Open the Basic Editor, and use the Shape By tool to pick a field from your elements' profiles. Note that Shape By only works with fields that can hold one value, like Element Type.
Automatic shaping by element type
When you use Shape By, legend entries will be created for you automatically.
In the Advanced Editor, you can use the
shapeproperty to assign shapes. Here's the basic syntax:
Two things to note:
- When choosing the
pillshape, you also need to indicate their
- To change the size of any shape other than the
pill, use the
sizeproperty, instead of width & height:
Instead of setting a shape directly, you can also use the
categorize()function to assign shapes based on a field:
shape: categorize("Element Type");
categorize()function has its own list of default shapes, but you can list your own shapes to customize which ones are used, and in what order:
shape: categorize("Element Type", diamond, hexagon, triangle);
Or, list a shape and a specific field value to control precisely how those shapes get assigned:
shape: categorize("Element Type", diamond "Person", hexagon "Organization");
Finally, if you'd like your categorized shapes to be automatically added to the legend, use the
element-shaperule inside a
element-shape: categorize("Element Type", diamond, hexagon, triangle);