Skip to examples
Browse chart types
Chart library26 ways to visualize

STATISTICS / CHART GUIDE

Treemap

A treemap is a chart used to display hierarchical data structures.

01 / EXPLORE

See it in action.

Switch to Code to copy an example.

Global Tech Industry Market Cap Distribution, Covering Software, Hardware, Semiconductors, and Internet

China Internet Industry Market Distribution by Segment, Custom Colors

Global GDP Distribution by Continent, Custom Palette

About Treemap

A treemap is a chart used to display hierarchical data structures. It visualizes hierarchical relationships by nesting data in rectangular areas. Each rectangle represents a category, and its size corresponds to the category's value. Treemaps are excellent for visualizing proportions across multiple categories, especially with large datasets, helping to quickly analyze the importance or weight of data.

02 / CONFIGURE

Make it yours.

The properties available for this chart.

Configuration Options

PropertyTypeRequiredDescription
typestringrequiredValue must be "treemap".
dataObject[]requiredChart data, array of objects containing nested objects.
data.namestringrequiredCategory name.
data.valuenumberrequiredCategory value.
data.childrenObject[]optionalSubcategory list.
titlestringoptionalChart title.
themeBuiltinThemeName | ThemeSpecoptionalBuilt-in theme name or custom theme object; default is "default". See Documentation → Custom Themes.
styleObjectoptionalChart style.
style.backgroundColorstringoptionalMust be a valid color value.
style.palettestring[]optionalMust be an array of valid color values.
GPT-Vis · An AntV project · MIT licensed