Pace UI

Treemap Chart

Dashboards

About

A squarified hierarchical treemap chart that tiles nested package/file data as proportionally sized rectangles, useful for visualizing file sizes or category breakdowns in analytics dashboards.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Treemap Chart to your project and fits it to your theme.

Code

How Treemap Chart is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import Treemap from "@/components/ui/tanstack-charts-treemap";

export default function TreemapDemo() {
  return (
    <div className="flex w-full items-center justify-center p-4">
      <Treemap />
    </div>
  );
}

Dependencies

More by Pace UI

View all
  • Dot Loader

    Dot Loader

    965
  • Flip Reveal

    Flip Reveal

    669
  • Dot Flow

    Dot Flow

    270
  • Draw Line Text

    Draw Line Text

    120
  • Liquid Glass

    Liquid Glass

    63
  • Liquid Cursor

    Liquid Cursor

    51
  • Layered Stack

    Layered Stack

    47
  • Calendar Heatmap Chart

    Calendar Heatmap Chart

    16

More in Dashboards

View all
  • Creator Dashboard

    Creator Dashboard

    141
  • serf dashboard

    serf dashboard

    100
  • Dashboard with Collapsible Sidebar

    Dashboard with Collapsible Sidebar

    2.6K
  • Glass Dashboard

    Glass Dashboard

    1.2K
  • Adjustable Glass Dashboard

    Adjustable Glass Dashboard

    1.2K
  • App Dashboard Layout

    App Dashboard Layout

    585
  • Glass Smart Home Dashboard

    Glass Smart Home Dashboard

    30
  • Stat Card

    Stat Card

    87

Explore more

Part of Pace UI — browse the full library on 21st.dev.