Treemap
Treemaps visualize hierarchical proportional breakdowns — every leaf is a rectangle whose area is proportional to its value. Common use cases: budget allocation across departments, ad-spend across channels, codebase size per language.
Note:
treemapis an ApexCharts-specific chart type. Chart.js does not have a native equivalent.
Basic Example — Marketing budget by channel
Multi-dim — Codebase by language
Top 15 — proportional shares with in-cell labels + distributed colors
A 100% breakdown (top 15 countries by visitor share on a SaaS landing-page).
Cells size by share, label themselves with country + percentage (no hover
required), and use ApexCharts' distributed: true plot option so each cell
picks a different theme-palette color instead of the value-shaded
monochrome default. Reach for this shape when the audience needs both the
proportional area AND the explicit values at a glance.
License note
ApexCharts is non-MIT — see the License section on the Chart overview page and apexcharts.com/license for the full terms.
See Also
- Heatmap for grid-based 2D categorical visualizations
- Pie + Donut for simple proportional breakdowns
Design Tokens
See ApexCharts adapter — Design Tokens for the color, typography, and grid tokens shared across every ApexCharts demo.