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















