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 };







