Pace UI

Recharts Interactive Legend

Component

About

A line chart with a clickable legend that toggles individual data series on and off, built on TanStack Charts.

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

Code

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

Usage.tsx

import RechartsInteractiveLegend from "@/components/ui/tanstack-charts-recharts-interactive-legend";

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

Dependencies

More by Pace UI

View all
  • Dot Loader

    Dot Loader

    974
  • Flip Reveal

    Flip Reveal

    670
  • Dot Flow

    Dot Flow

    270
  • Draw Line Text

    Draw Line Text

    123
  • Liquid Glass

    Liquid Glass

    65
  • Liquid Cursor

    Liquid Cursor

    51
  • Layered Stack

    Layered Stack

    50
  • Calendar Heatmap Chart

    Calendar Heatmap Chart

    22