Chart Card 26 - TreemapPro

Hand-built treemap that splits revenue by product into proportional tiles, each tinted from a chart token with its label, value and share.

About Chart Card 26

Hand-built treemap that splits revenue by product into proportional tiles, each tinted from a chart token with its label, value and share.

Chart Card 26 is a chart card block for React and Tailwind CSS, included in Chocolate UI Pro. It ships as 135 lines of TypeScript you own: every piece of copy is a prop with a sensible default, so you can drop it in and replace the content without touching the layout.

  • chart
  • treemap
  • proportion
  • breakdown
  • tiles

Installation

  1. Set up your project with npx chocolateui init and npx chocolateui login (see the installation guide).
  2. Run the Chocolate UI CLI:
npx chocolateui add chart-card-26

Dependencies installed automatically: lucide-react.

Uses: card, reveal, utils.

Usage

import ChartCard26 from "@/components/blocks/chart-card-26"

export default function Page() {
  return <ChartCard26 />
}

FAQ