Stop Rebuilding UI

Stats Treemap Card

A treemap stats card for React and Next.js with Recharts Treemap rendering proportional rectangles for category distribution, chart-token colored cells, inside labels with values, NumberFlow animated total, and a compact legend built with shadcn/ui and Tailwind CSS

Scroll to load preview

Visualize proportional category distribution with this treemap stats card for React and Next.js. Features a ChartContainer-wrapped Recharts Treemap with rectangles sized proportional to each category value, chart-token fills from var(--chart-1) through var(--chart-5), inside labels showing category name and formatted value, a NumberFlow animated total in the header, and a compact color-dot legend row. Built with TypeScript, ChartContainer from shadcn/ui, Recharts Treemap, NumberFlow, motion/react parent entrance, and Tailwind CSS. Perfect for disk usage visualizations, budget allocation breakdowns, market share distribution widgets, and inventory composition dashboards.

FAQ

Last updated on April 12, 2026

Was this page helpful?

Sign in to leave feedback.