Core

Treemap Chart

A treemap chart shows hierarchical data using nested rectangles and is useful when size and grouping need to be understood together.

Example

Usage

Features

  • Best for hierarchical size comparisons.
  • Supports nested groups and leaf nodes.
  • Uses LibravelUI colors through the shared chart palette.
  • Built-in tooltip support is included.
  • Leaf labels are handled inside the chart surface.

Anatomy

import { TreemapChart } from "@/components/ui/core/charts/treemap-chart";
<TreemapChart
  data={data}
  hideValue={false}
/>

Props

Loading types…

Edit on GitHub

Last updated on