pacekit

Pie Chart Legend

Component

About

A pie chart with a custom color-coded legend and interactive tooltips, built with TanStack Charts for showing proportional breakdowns like traffic by browser or region.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Pie Chart Legend to your project and fits it to your theme.

Code

How Pie Chart Legend is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import PieLegend from "@/components/ui/tanstack-charts-pie-legend";

export default function PieLegendDemo() {
  return (
    <div className="flex w-full items-center justify-center p-8">
      <PieLegend />
    </div>
  );
}

Dependencies

More by pacekit

View all
  • AI Response Writer

    AI Response Writer

    364
  • Mouse Wave Text

    Mouse Wave Text

    23
  • Bouncing Text

    Bouncing Text

    23
  • Gradient Shadow

    Gradient Shadow

    16
  • Scramble Text

    Scramble Text

    15
  • AI Suggestions

    AI Suggestions

    9
  • Squash Text

    Squash Text

    8
  • AI Model Selector

    AI Model Selector

    3