The Treemap is a multi-dimensional widget that displays hierarchical data in the form of nested rectangles. This type of chart can be used in different scenarios, for example, instead of a column chart if you have to compare too many categories and sub-categories.
Adding Data
-
In the Categories panel, click Add+ to select the fields whose values will be represented as rectangles in the chart.
Typically, the Categories of a Treemap widget contain descriptive data.
You can add up to three fields, so that a rectangle hierarchy is created.
You can reorder the fields using drag and drop.
-
In the Size panel, select the field whose values determine the size of the rectangles by clicking Add +. Values are typically used to represent numeric data.
You can add only one field.
-
In the Color panel, click Add + to select the field to use as the color basis for your rectangles.
Organising Data by Colour
The following colouring scenarios are supported:
- Colour by a numeric value: If you choose a numeric value, then each rectangle will be coloured according to its value in the field’s range of values. You can manipulate the colouring rules in the colour formatting menu.
- Colour by field members: If you choose a field, then all rectangles that are members of that field will be coloured the same. For example, if you choose to colour by the field that is also used as the first category, then the entire Treemap will be split into groups of colours, like in the image at the top of this page. If you choose to colour by the field that is used as the second category, then all rectangles that share the same value will also share the same colour, as in the image below:
Note: You can only colour by a field that is also used in the Categories panel. If you choose a field that is not there, it will be automatically added.
Designing the Treemap
Fine-tune the appearance of the Treemap widget, using the following tools.
- Captions: Control which info is presented in the treemap. A checkbox will be visible for each field that is used in the Categories panel. Turning a field on/off will determine if the field member name will be visible inside the treemap. Note that this info will always be available in the tooltip when hovering over a rectangle, regardless of the on/off setting.
- Tooltip: Select whether to show the actual value or contribution in the rectangle tooltip when hovering over it.
Treemap Selector
The Treemap can also serve a dual purpose in the form of a selector and contribution visualisation.
Note: If you choose to use a value in the Treemap with many categories, the Treemap sizes the smaller categories by contribution and this may cause them to be too small to see or select. If you still want to use the Treemap for a selector, just remove the value. The Treemap will show evenly spaced categories.