Treemap visualization (SmartViz)

Important

This feature is in beta and subject to change. Reach out to support with any issues.

The Treemap visualization fills the tile with rectangles sized in proportion to their value. It handles many more categories than a donut before becoming unreadable, and can nest items inside a parent category to show two levels of grouping at once.

When to use a treemap

A treemap sizes rectangles by value and fills the tile with them, handling far more categories than a donut before becoming unreadable. It also nests, showing two levels of grouping at once.

Cost is the classic use: Azure Cost (Service) nested inside subscription, or AWS Cost by service inside account. Storage works too, with S3 Bucket Size grouped by account.

The trade-off is precision. Judging two similar rectangles by area is much harder than judging two bars by length, so use a treemap to show what dominates, not to read values from. Where exact comparison matters, use a Bar.

Try it out

Change the settings below and see how the chart updates. Select a dataset from the dropdown to see different use cases.

Interactive example
Showing

Quarterly revenue with region as the parent and product line as the child. Parent turns eight loose numbers into something a reader can scan region by region.

Platform98,000Add-ons41,000Support plansPlatform76,000Add-ons29,000Support plansPlatform54,000Add-ons15,000North AmericaEMEAAPAC
Treemap: North America is the largest group at 161,000 $. Tallest tile: "Platform" in APAC (78% of its own group) — but "Platform" in North America is worth more overall (98,000 vs 54,000 $). Height only shows a tile's share of its own group, not its real value.

Treemap settings

Data mapping

Setting
Description
Label
Required. Select the column naming each rectangle.
Value
Required. Select the numeric column determining each rectangle's size.
Parent
Select a column to group the rectangles into a parent category.

Legend & labels

Setting
Description
Show Data Labels
Enable to print the value inside each rectangle.
Label Color
Choose the text color for labels.
Label Font Size (px)
Enter the font size for labels, from 6 to 72.
Label Format
Enter an Expression to format the label content. Use {{value}}, {{name}}, {{percentOfTotal}}, or a column name. The date, number, and percent helpers are available.

Colors

Add up to 20 colors to set the palette, in order. The palette repeats when there are more items than colors. Leave the palette empty to use the SquaredUp default colors.

Series / status colors

Pin a named value to a specific color, regardless of its position in the palette. Enter the name exactly as it appears in your data, then choose its color.

Was this article helpful?


Have more questions or facing an issue?