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.

Use Cases

  • Display data with hierarchical structures, such as corporate organization charts or directory file systems.
  • Compare multiple categorical items and show the proportion of each category within the whole.
  • Analyze relationships and proportions between categories, and the contribution of subcategories to parent categories.

Visual Examples

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

Options

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.
theme'default' | 'dark' | 'academy'optionalChart theme, default is "default".
styleObjectoptionalChart style.
style.backgroundColorstringoptionalMust be a valid color value.
style.palettestring[]optionalMust be an array of valid color values.