Working with Treemaps

About Treemaps

A treemap displays a hierarchy or a category as a set of rectangular tiles. Each tile represents a category value or a hierarchy node. The size of each tile represents either the frequency count or the value of a measure. If you assign a measure to the Color role, then the color of each tile represents the value of that measure.

Data Roles for a Treemap

The basic data roles for a treemap are:
Tile
specifies categories or a hierarchy that are used to create the tiles in the treemap. If you specify categories for the Tile role, the order of the categories determines the level of each category. Drag and drop the categories to place them in the order that you want.
Size
specifies a measure that determines the size of each tile. If you do not specify the Size role, then the tile size is determined by the frequency count.
Note: If any of the aggregated values for the Size role results in a negative size value or a value of zero, then an error appears.
Color
specifies a measure that determines the color of the tiles.

Specify Properties for a Treemap

On the Properties tab, you can specify the following options:
Name
specifies the name of the visualization.
Title
specifies the title that appears above the graph.
Note: The Title option is disabled if you select Generate graph title.
Generate graph title
specifies that the graph title is generated automatically based on the data items in the visualization.
Show data labels
shows a text label for each tile in the treemap.
Frequency
specifies whether the frequency values are displayed as the number of values (Count) or as the percentage of values (Percent).
Arrangement
specifies the layout of the tiles in the treemap. Select one of the following values:
Standard
arranges the tiles into squares, with the largest tiles generally at the bottom left.
Flow
arranges the tiles from largest to smallest, with the largest tile at the top left.
Toggle
arranges the tiles into a single row or column, with the largest tile on the left or at the top.
The orientation of the tiles alternates between hierarchy levels. The top level is arranged as a row, the second level is a column, and so on.
specifies the number of levels that are displayed beneath the current level.
selects the gradient colors for the visualization.
You can click the Edit color gradient button to select the values that are used to assign the colors. See Specify a Custom Data Range.

Create a Hierarchy from a Treemap

If your treemap contains categories in the Tile role, then you can create a new hierarchy by using the categories.
On the Roles tab, click on the drop-down list for the Tile role, and then select Create Hierarchy. A new hierarchy is created with the name of the first category in the hierarchy.
Last updated: January 8, 2019