Edilitics | Data to Decisions

Treemap

Show hierarchy and proportion together as nested rectangles, sized by one measure and optionally colored by a second. Best for part-to-whole breakdowns.

A treemap shows hierarchical, part-to-whole data as nested rectangles, with each rectangle's area proportional to its value. Drop 1 to 4 categorical or date fields into Column, in the order you want the hierarchy to nest, and 1 to 2 numeric fields into Row - the first sets rectangle size, the optional second sets color. Use it when both the breakdown structure and the relative size of each part need to be visible together.

When to Use

A treemap answers "how is this total broken down, and which parts dominate" in one view - revenue by region and then by product within each region, storage by folder and then by file type, headcount by department and then by team. The rectangle sizes make proportion immediately visible without reading a single number, and the nesting shows the hierarchy structure a flat pie chart or bar chart can't represent.

A second Row field changes what color means. With just one measure assigned, color is automatic - rectangles are ranked by size and colored along a gradient based on that ranking, not a specific value. Assign a second Row field and color switches to reflect that field's actual value instead (averaged within each level), independent of size - useful for spotting categories that are big but underperforming on a separate metric like margin or score.

Switch to a different chart when:

  • Your data has no real hierarchy - it's one flat breakdown - use a Pie Chart or Donut Chart
  • Precise value comparison matters more than relative area - use Horizontal Bar
  • You need a strict parent-child tree structure rather than nested area, especially for sparse or uneven hierarchies - use a Tree Chart
ScenarioHierarchy (Columns)Size (Row 1)Color (Row 2, optional)
Revenue breakdown by region and productRegion, ProductRevenueProfit margin
Storage usage by folder and file typeFolder, File typeFile sizeAverage file age
Headcount by department and teamDepartment, TeamHeadcountAverage tenure
Portfolio allocation by sector and holdingSector, HoldingAllocation amountYear-to-date return
Support volume by category and issue typeCategory, Issue typeTicket countAverage resolution time

Required Inputs

FieldTypeCount
Dimension (Hierarchy levels)Categorical or Date1 to 4
Measure (Size, then optional Color)Numeric1 to 2

For step-by-step build instructions, see Build Your First Chart.

Formatting Options

The Format tab unlocks after at least the hierarchy and size measure are assigned.

Style

Use the chart title to state what the rectangles represent, since the hierarchy alone doesn't always make the size measure obvious.

ControlWhat it does
Show Chart TitleShows or hides the title.
Enter Chart TitleTitle text. Maximum 50 characters.
Font familyFont applied to the title.
Font size5 to 30.
Bold / ItalicWeight and style.
AlignmentLeft, center, or right within the chart container.

Treemap Styles controls sort order, the color gradient's two ends, and the rectangle borders.

ControlWhat it does
Sort OrderDescending (default), Ascending, or None - the order rectangles are arranged within each level.
Start Color / End ColorThe gradient's two ends. With one measure assigned, these span the size-rank gradient; with two, they span the color measure's actual value range.
Border Width0 to 5px. Thickness of the line separating rectangles.
Border ColorColor of that border line.
Border Radius0 to 20px. Rounds rectangle corners.
Show LabelsShows or hides the category name printed on each rectangle.
Font Family / Color / Font size / Bold / ItalicStyling for rectangle labels, when shown.
Text CaseUppercase, lowercase, capitalize, or none.

The breadcrumb shows the drill path after clicking into a rectangle, and lets you navigate back up - it's the only way back to a higher level once you've zoomed in, since clicking to drill down is always on.

ControlWhat it does
Show BreadcrumbShows or hides the breadcrumb trail.
Background ColorBackground of each breadcrumb step.
Font Family / Color / Font size / Bold / ItalicStyling for the breadcrumb text.
AlignmentLeft, center, or right.

Interactivity

The tooltip appears on hover over a rectangle, showing its position in the hierarchy and its size value - plus its color measure's value, when a second Row field is assigned.

ControlWhat it does
Show TooltipShows or hides the tooltip entirely.
Header / value text stylingFont, size, and color for the lines shown in the tooltip.

Animation controls the rectangles' transition when the chart first renders, when you drill into a category, or when the data changes.

ControlWhat it does
Enable AnimationTurns the transition animation on or off.
DurationHow long the transition takes.
DelayHow long the transition waits before starting.
Easing FunctionThe transition curve.

Emphasis controls the visual response when hovering a rectangle - a scale-up effect and a drop shadow. Off by default.

ControlWhat it does
Show EmphasisTurns hover effects on.
Focus TypeItem, Series, or None.
Enable ScaleScales the hovered rectangle up slightly.
Scale Size1.0x to 2.0x.
Shadow Blur / Color / Offset X / Offset YDrop shadow styling on the hovered rectangle.
Border WidthBorder added around the hovered rectangle.

Enable the Toolbox when viewers need to export the chart or inspect its underlying data.

ControlWhat it does
Show ToolboxShows or hides the toolbox icon bar.
Save as ImageAdds a download icon that saves the chart as a PNG.
Data ViewAdds an icon that opens the underlying data table in a separate view.

Best Practices

Assign a second Row field only when the color measure genuinely differs from size. Color-by-rank (the one-measure default) already highlights big-versus-small visually through area alone. A second measure is worth adding specifically when "big" and "high color value" diverge - a category that's large but low-margin, for example - since that contrast is the whole point of dual-encoding.

Order Column fields by how you want the hierarchy to nest. The first Column field becomes the outermost grouping, the second nests inside it, and so on up to 4 levels. Reassign the field order if the breakdown reads backwards from what makes sense for your audience.

Keep each hierarchy level's category count manageable. A level with dozens of distinct values produces many small rectangles that are hard to label and compare. Filter to the most relevant categories, or reduce the number of hierarchy levels, rather than relying on the chart to make a wide breakdown readable.

Remember only the top level is visible until you click in. A treemap doesn't show every nested level simultaneously by default - clicking a rectangle drills into its children, and the breadcrumb is how you navigate back out. If a static, fully-expanded view of every level is what's needed, a treemap's default drill-down behavior may not be the right fit.

Use Sort Order deliberately when rectangle position matters for the story. Descending (the default) puts the largest rectangle first; switching to Ascending or None changes the reading order without changing any underlying value.

FAQs

Need help? Email support@edilitics.com with your workspace, job ID, and context. We reply within one business day.

Last updated on

On this page