Treemap

Explore parts of a hierarchical total as proportional blocks.

Import
@neural-charts/web
Data
treemap

Live demo

Container width

The chart fits its available space automatically. Choose a width to simulate a different container.

Animation
240ms
Long namesLabels stay inside their blocks; tooltips retain full names.42422828151522221818PortfolioPortfolioSoftwareSoftwareApplications · internat…Applications · international business and subscriptionsCloud · international bu…Cloud · international business and subscriptionsTools · international bu…Tools · international business and subscriptionsServicesServicesSupport · internation…Support · international business and subscriptionsConsulting · internat…Consulting · international business and subscriptions

Long names

Labels stay inside their blocks; tooltips retain full names.

Original data
SeriesidlabelvalueVisible
portfolioPortfolioMissing measurementYes
softwareSoftwareMissing measurementYes
appsApplications · international business and subscriptions42Yes
cloudCloud · international business and subscriptions28Yes
toolsTools · international business and subscriptions15Yes
servicesServicesMissing measurementYes
supportSupport · international business and subscriptions22Yes
consultingConsulting · international business and subscriptions18Yes

Tap a data point or explore it with the pointer or keyboard.

Configurator

Adjust the presentation and interaction of this example.

Chart elements and interaction
Chart toolbar
  1. CSV
  2. PNG
  3. SVG

Interactive examples

Open a chart to explore its data, try its options and copy its code.

When to use it

Use a treemap for a nonnegative hierarchy whose parts and groups matter. Exact values and known subtotals remain available in detail; no negative leaf values.

Chart API · Treemap

Expand a property to learn when to use it, see its public type, and find examples where applicable.

Data

The property data.type for this family is treemap.

Appearance

Customize presentation while keeping series and point identities stable.

Tooltip

Customize the tooltip with code →

Interaction and state

Identify the selection and hidden series by ID.

Animation

Complete options and events reference

Explore the data

Select an observation with the pointer or enter the chart with Tab. Arrow keys navigate the data; Home and End move to the endpoints. Enter or Space selects, and Escape closes the detail.

The data table retains original values, including missing values and hidden series. A repeated label does not merge separate categories. Manual screen reader review remains pending.

Accessibility guide

Example data

Copy the current input object with its original identifiers and values.