Overview
This article helps you configure Treemap chart using the components available in the WebApp Builder. This chart is ideal for visualizing hierarchical data with part-to-whole or parent-child relationships, portfolio composition analysis, or displaying nested category breakdowns where size represents value or volume.
Prerequisites
Review the recommendations provided to design/create a chart dataset.
Ensure that a Dataset is created for the appropriate chart type and purpose, using the required fields.
When cleansing or enriching data, users may want to visualize their work with charts. In this case, create a Grid or Form container on a construct page and use the same dataset to bind data between the Grid or Form and the Chart containers.
For example, you are cleansing customer records in a Grid container by correcting missing or invalid values. You can then use the same dataset in a Chart container to visualize customer distribution by region. Since both the Grid and Chart share the same dataset, any changes in the Grid are automatically reflected in the Chart.
Dataset Design Recommendations
Ideal for visualizing hierarchical part-to-whole or parent-child relationships where size represents value or volume.
Requires three columns from a dataset:
Note
You can use the same chart dataset in a Grid component if you plan to modify or manipulate the data.
Parent Field defines the top-level grouping or category, for example, Department, Product Category.
Child Field defines the sub-categories or items nested within each parent, for example, Product Name, Team.
Value Field must be a column with NUMERIC(precision, scale) data type. This determines the size of each rectangle, for example, Revenue, File Size, Count.
In general, the dataset should have a clear parent-child relationship where each child belongs to exactly one parent.
You need to include an additional field in your dataset if you plan to bind the chart dataset to a grid or form component’s dataset. Refer to Data Binding in Charts for more information.
Treemap Chart Example
.png?sv=2022-11-02&spr=https&st=2026-02-13T11%3A26%3A41Z&se=2026-02-13T11%3A42%3A41Z&sr=c&sp=r&sig=MYI46TMFAAsqwU%2B%2BPJNmJWyGyUtTQMgd79q7LZW4XTk%3D)
.png?sv=2022-11-02&spr=https&st=2026-02-13T11%3A26%3A41Z&se=2026-02-13T11%3A42%3A41Z&sr=c&sp=r&sig=MYI46TMFAAsqwU%2B%2BPJNmJWyGyUtTQMgd79q7LZW4XTk%3D)
.png?sv=2022-11-02&spr=https&st=2026-02-13T11%3A26%3A41Z&se=2026-02-13T11%3A42%3A41Z&sr=c&sp=r&sig=MYI46TMFAAsqwU%2B%2BPJNmJWyGyUtTQMgd79q7LZW4XTk%3D)
Configuration Steps
Note
You can interact with Build Assist to quickly configure charts as required by entering a prompt that provides the context of the dataset and the fields to be used.
On the Construct Preview’s home page, edit the required WebApp. The WebApp configuration page is displayed.
Click More Options (…) next to the required page or container node and select Add Chart > Add Treemap Chart.
Click the Treemap Chart node. The Details Pane is updated with the Treemap Chart fields.
Enter the required values for the fields to create a Treemap chart in a container using the following tables:
Field Name
Description
Supported Values/Notes
Name
requiredName of the Treemap Chart Container.
Enter a name within length constraints. maxLength: 50
Title
Label that is displayed on the top of this chart container.
Enter a title within length constraints. maxLength: 50
Parent Layout Container
Name of the parent container used for page layout. Allows you to link child containers to a parent container.
Select the parent container to house this chart container.
Ordinal
Allows ordering the containers.
Any integer. default: 0
Tab Label
Label displayed as the tab name for a container. Use this property only when a container needs to be included in a tab container.
Enter a name within length constraints. maxLength: 50
Override Datastore
SKP Datastore name for this component that overrides the datastore configured at the WebApp level. Refer to Datastores for more information.
Click the Open Details
button next to the Datastore list to open it in the SKP Catalog.NA
Dataset
requiredSKP dataset for the data used for this container. Select the required Dataset.
Scroll down the Dataset list to auto-create a dataset using a table or view based on Construct Preview’s recommendation.
Note
If a dataset is being created from a SQL view, you must set its Affected Table. Click the Open Details
button next to the Dataset list to open it in the SKP Catalog.Note
The Update Dataset button opens a dialog box that allows you to rescan the dataset and add any newly available fields from the underlying table or view to the dataset used in this container.
Specify the dataset classification.
If the scan errors out, access the associated Datastore’s scan logs in the SKP Catalog module to troubleshoot the error.
Parent Field
required
Select a field from the dataset that defines the top-level grouping or category that contains child elements.
This field establishes the first hierarchical level in the treemap structure. For example, In a sales treemap:
Department(Electronics, Clothing, Home Goods)Child Field
requiredSelect a field from the dataset that defines the sub-categories or individual items nested within each parent.
This field creates the detailed breakdown shown as rectangles within parent sections.
For example, For Department parent,
Product Category(Laptops, Phones, Tablets under Electronics)Value Field
requiredSelect a field from the dataset that determines the size of each rectangle. Larger values create bigger rectangles, representing magnitude or importance.
For example,
Revenue- shows sales performance ($225,000)Label Skip Size
Minimum size below which labels are hidden. Prevents text clutter on tiny rectangles that can't display readable text.
default: 12, maximum: 100
Parent Label Position
Select a position to control where the parent field label and flow appears within its containing rectangle
default: Top
Parent Binding Container
Select the parent grid/form container type for data binding. Allows you to link between grids/forms and charts.
NA
Container Bindings > Source Column
Note
Click Add to set up required number of container bindings.
Select the source column in the parent binding container.
Use either the Source Column or the Source Value field, but not both.
Container Bindings > Source Value
A fixed source value for data binding.
Use either the Source Column or the Source Value field, but not both.
Container Bindings > Target Column
requiredSelect the target column in the chart container’s dataset.
NA
Columns > Name
requiredNote
Click Add to set up required number of columns to control how the fields on the chart will be sorted.
Select the field name from the dataset used in the chart container.
NA
Columns > Sort Mode
Used with the Sort Priority field to configure the default column sort order:
Supported Values:
None
Ascending
Descending
Columns > Sort Priority
Used with the Sort Mode field to configure the default column sort order.
Default: 0
Link to Page Name
Select the Page to navigate on click.
NA
Open in New Tab
Enable this toggle to open the chart link in a new browser tab.
NA
Link to Page Bindings > Name
requiredNote
Click the Add button to add the required chart link to page bindings criteria.
Specify a unique binding name for the page link
Enter a name for binding. maxLength: 256
Link to Page Bindings > Target Column
requiredSpecify the target column in the linked page
Enter target column name from your dataset. maxLength: 128
Link to Page Bindings > Target Page Container Name
Specifies the container name in the linked page
Select the name of the grid or form container from the page you’ve selected.
Link to Page Bindings > Source Data Record Field Value
Specifies the source column in the current page
Select source column name from your dataset.
Link to Page Bindings > Fixed Value
Specifies the source value in the current page
Specify the value or the actual record of the source column. maxLength: 255
Display Mode
Configures the display mode
* Card: Card-like format
* Empty: No visual elements
Default: CardLayout
Specifies how the containers flow within the page
* FlowHorizontal: Side-by-side display
* FlowVertical: Top-to-bottom displayAlignment
Controls the alignment for placing the container
* Start
* Stretch
* End
Default: StretchSize
Value of the units that are used to compute the size of a container
Any positive number. minimum: 0, default: 1
Size Units
Units that are used to compute the size of a container
* Pixels
* Rem
* GrowRatio
Default: GrowRatio
Gap
The gap between containers or fields on a property card
Any positive number. minimum: 0, default: 1
Padding
Adjusts the padding inside of the container
Any positive number. minimum: 0, default: 0
Click the Save & Preview
button to validate that the Treemap chart is configured correctly.