uiable

Bar Chart with Legend

Component 3

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

Dependencies

More by uiable

View all
  • Feature Highlights Grid

    Feature Highlights Grid

    499
  • Card Tabs

    Card Tabs

    138
  • Financial Bento Grid

    Financial Bento Grid

    125
  • Chart Tooltip

    Chart Tooltip

    88
  • Portfolio Showcase Grid

    Portfolio Showcase Grid

    86
  • Marketing Hero Section

    Marketing Hero Section

    86
  • Sidebar with Search and Profile

    Sidebar with Search and Profile

    77
  • Attachment States

    Attachment States

    53