Airbnb

Treemap chart

Component 48

About

here is treemap component

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

// src/components/ui/treemap-chart-demo.tsx

import { TreemapChart } from "@/components/ui/treemap-chart";

const DemoTreemapChart = () => {
  const width = 700;
  const height = 500;

  return (
    <div className="flex w-full h-screen justify-center items-center bg-gray-100">
      <TreemapChart width={width} height={height} />
    </div>
  );
};

export { DemoTreemapChart };

Dependencies

More by Airbnb

View all
  • Radar chart

    Radar chart

    116
  • Heatmaps

    Heatmaps

    116
  • Pie chart

    Pie chart

    102
  • Linktypes

    Linktypes

    98
  • Finance Chart

    Finance Chart

    90
  • Word cloud

    Word cloud

    65
  • Legends

    Legends

    54
  • Streamgraph

    Streamgraph

    51