Treemap Chart Preset
Treemap
Treemap is an OPF treemap chart preset with canonical workbook metadata, sample data, and engine chart type mapping.
treemapOPF type: TREEMAPsimple
Use Case
Show how categories and subcategories contribute to a total.
Data Requirements
1 series, 6 categories, flat category/series workbook
Group
Hierarchical part-to-whole charts using nested rectangles.
Series
1 series across 6 categories
Workbook Range
Sheet1!$A$1:$G$2
Source Slide
Slide 43 in the OPF chart gallery deck
When to Use
Use when hierarchy and relative size are both important.
When to Avoid
Avoid when the audience needs exact sequential comparison or many labels must be read.
Best Practices
1
Keep hierarchy shallow
2
Label only readable blocks
3
Use grouping color consistently
Recommended Companions
OPF Config
charts:treemapOpen Presentation Format
{
"$schema": "https://pptx.dev/schema/opf/v1",
"version": "1.0",
"meta": {
"title": "PPTX.gallery — charts/treemap"
},
"design": {},
"slides": [
{
"id": "gallery-preview-1",
"layout": "chart",
"elements": [
{
"id": "gallery-chart-1",
"type": "chart",
"chartPreset": "treemap",
"data": {
"labels": [
"Q1 2024",
"Q2 2024",
"Q3 2024",
"Q4 2024",
"Q1 2025",
"Q2 2025"
],
"datasets": [
{
"label": "Series1",
"values": [
21164,
42530,
25525,
83147,
64548,
89471
]
}
]
}
}
]
}
]
}Open in OPF Playground
Preview this config live at pptx.dev/playground.