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
















