You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
zmworm edited this page Apr 29, 2026
·
16 revisions
Excel: Chart - treemap
A dedicated page for the treemap chart type. Treemaps are part of
Excel's cx:chart (extended chart, Office 2016+) family. They display
hierarchical data as nested rectangles where each cell's area is
proportional to its value.
A treemap divides a rectangular area into nested tiles where each tile's
area is proportional to its value. Categories provide the cell labels,
and colors cycle through the palette to visually distinguish cells.
Treemaps are ideal for showing composition and relative size at a glance
(e.g. disk usage, revenue by product, portfolio allocation).
Treemaps have no axes and no gridlines. All axis-related properties
(xAxisTitle, yAxisTitle, axismin, gridlines, etc.) are silently
ignored on treemap charts.
Title styling
Property
Default
Notes
title
—
Chart title text; none/false to hide
title.color / titlecolor
—
Title font color (hex)
title.size / titlesize
—
Title font size (pt)
title.bold / titlebold
—
Title bold (true/false)
title.font / titlefont
—
Title font family
title.shadow / titleshadow
—
Title drop shadow: "COLOR-BLUR-ANGLE-DIST-OPACITY" or "none"
Legend
Property
Default
Notes
legend
—
top / bottom / left / right / none (omit legend)
legend.overlay / legendoverlay
false
Let the legend float on top of the plot area when true. Useful when chart space is tight.
legendfont / legend.font
—
Compound legend text styling: "size:color:fontname"
Plot area and chart area fills
The plot area is the rectangle the treemap cells are drawn inside. The
chart area is the outer frame that also contains the title and legend.
Property
Default
Notes
plotareafill / plotfill
—
Plot-area solid background: hex color
plotarea.border / plotborder
—
Plot-area outline: "color", "color:width", "color:width:dash", or "none"
chartareafill / chartfill
—
Chart-area (outer frame) solid background: hex color
chartarea.border / chartborder
—
Chart-area outline, same grammar as plotarea.border
Hidden when cell is too small (<40px wide or <18px tall)
White cell borders
Yes
Plot/chart area fills
Yes
Known quirks and limitations
No axes. Treemaps are a pure area-proportional visualization with
no axes or gridlines. All axis-related properties are silently ignored.
parentLabelLayout only matters for multi-level treemaps. With a
single flat list of categories, all three values produce identical output.
Preview font fallback. The HTML preview renders cell colors and
fills correctly but does not reproduce custom font families — labels
fall back to the preview's default sans font. Use Excel for final
typographic QA.
Inspect an existing treemap
# Count all charts across the workbook
officecli query data.xlsx chart
# Introspect a single chart's bound properties
officecli get data.xlsx "/Sheet1/chart[1]"# Render the sheet to HTML preview
officecli view data.xlsx html > preview.html