Skip to main content

Treemap

Treemap displays hierarchical (tree-structured) data as nested rectangles. The branches are rectangles, then tiled with smaller rectangles representing sub-branches. Rectangles have areas proportional to a specified dimension of the data using the specified aggregation function (count by default).

Treemap displays all data simultaneously and shows a part-to-whole relationship among many categories. Use a treemap to spot irregularities or patterns.

Tree Map

Adding

  1. Go to Tables and expand the Viewers panel.
  2. Locate the Treemap icon and click it.

Developers: To add the viewer from the console, use: grok.shell.tv.addViewer('Treemap');

Initially, the viewer picks up the first categorical column in the corresponding table and builds a treemap.

Settings

You can set the hierarchy and customize a treemap viewer. To do that, click the Gear icon on top of the viewer and use settings on the Context Panel. For example, you can:

  • Set tree hierarchy
    • Choose the desired column using the drop-downs on top of the viewer.
    • Or, edit the Split by property (drag-and-drop columns to change their order).
  • Select the rows for the treemap display using the Row source dropdown list.
  • Size-code nodes using Size and Size Aggr Type properties.
  • Color-code nodes using Color and Color Aggr Type properties.

Interactivity

  • Shows a subset of rows specified by the Row Source property
  • Shows selected rows in orange
  • Synchronizes current record upon clicking on the point
  • Click on the rectangle selects rows

Treemap

Viewer controls

ActionControl
Add node to selectionShift+click the node
Toggle node selectionCtrl+click the node

Properties

PropertyTypeDescription
General
Split By Column Nameslist
Color Column Namestring
Color Aggr Typestring
Size Column Namestring
Size Aggr Typestring
Default Colornumber
Show Column Selection Panelboolean
Outer Margin Leftnumber
Outer Margin Rightnumber
Outer Margin Topnumber
Outer Margin Bottomnumber
Row SourcestringDetermines the rows shown on the plot.
Allow Dynamic Menusboolean
Show Context MenubooleanProperties common for all viewers todo: use code generation
Titlestring
DescriptionstringViewer description that gets shown at the Descriptor Position. Markup is supported.
HelpstringHelp to be shown when user clicks on the ''?'' icon on top. Could either be in markdown, or a URL (starting with ''/'' or ''http'').
Description Positionflexposition
Description Visibility Modevisibilitymode
Style
Auto Layoutboolean
Controls FontstringViewer controls elements font.
Data
FilterstringFormula that filters out rows to show. Examples: ${AGE} > 20 or ${WEIGHT / 2)} > 100, ${SEVERITY} == ''Medium'', ${RACE}.endsWith(''sian'')
Tablestring
Description
Show Titleboolean

Videos

Tree Map

See also