About
A bar chart comparing desktop and mobile values by month, with a legend, tooltip, and grid built on Recharts.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Bar Chart with Legend to your project and fits it to your theme.
Code
How Bar Chart with Legend is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import ChartBarDemoLegend from "@/components/ui/chart-example-legend";
export default function ChartExampleLegendDemo() {
return (
<div className="w-full max-w-2xl">
<ChartBarDemoLegend />
</div>
);
}








