amankaushik481

Treemap Chart

Dashboards 1

About

A squarified SVG treemap chart that groups cells under header strips, hides labels in small cells, and shows a value tooltip on hover or keyboard focus.

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 { TreemapChart } from "@/components/ui/treemap-chart";

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

More by amankaushik481

View all
  • Chip Filter

    Chip Filter

    7
  • Icon Button

    Icon Button

    5
  • Background Boxes

    Background Boxes

    4
  • Emoji Picker

    Emoji Picker

    4
  • Morphing Text

    Morphing Text

    2
  • Typing Text

    Typing Text

    1
  • Particles

    Particles

    1
  • Error State

    Error State

More in Dashboards

View all
  • Creator Dashboard

    Creator Dashboard

    94
  • serf dashboard

    serf dashboard

    83
  • Dashboard with Collapsible Sidebar

    Dashboard with Collapsible Sidebar

    2.6K
  • Glass Dashboard

    Glass Dashboard

    1.1K
  • Adjustable Glass Dashboard

    Adjustable Glass Dashboard

    1.2K
  • App Dashboard Layout

    App Dashboard Layout

    572
  • Sidebar

    Sidebar

    422
  • Stat Card

    Stat Card

    78