Pace UI

Pie Chart Legend

Component

About

A pie chart with a custom color-coded legend below it, useful for showing proportional breakdowns like browser or traffic share in an analytics dashboard.

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 Pace UI

View all
  • Dot Loader

    Dot Loader

    960
  • Flip Reveal

    Flip Reveal

    669
  • Dot Flow

    Dot Flow

    267
  • Draw Line Text

    Draw Line Text

    119
  • Liquid Glass

    Liquid Glass

    62
  • Liquid Cursor

    Liquid Cursor

    51
  • Layered Stack

    Layered Stack

    46
  • Calendar Heatmap Chart

    Calendar Heatmap Chart

    10