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>
);
}








