heygaia

Bar Chart

Dashboards 16

About

A bar chart component for comparing values or showing distributions, with default, stacked, horizontal, and multi-series variants built on Recharts and shadcn chart primitives.

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

Code

How Bar Chart is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { BarChart } from "@/components/ui/bar-chart";

const data = [
  { month: "Jan", revenue: 4200 },
  { month: "Feb", revenue: 5100 },
  { month: "Mar", revenue: 4800 },
  { month: "Apr", revenue: 6100 },
  { month: "May", revenue: 5800 },
  { month: "Jun", revenue: 6700 },
];

export default function Example() {
  return (
    <div className="flex w-full items-center justify-center p-8">
      <BarChart
        data={data}
        xKey="month"
        yKeys="revenue"
        title="Revenue"
        description="Monthly revenue (USD)"
        footer="Last 6 months"
      />
    </div>
  );
}

Dependencies

More by heygaia

View all
  • Tool Calls Section

    Tool Calls Section

    466
  • Radar Chart

    Radar Chart

    72
  • Wave Spinner

    Wave Spinner

    23
  • Line Chart

    Line Chart

    18
  • Knowledge Graph

    Knowledge Graph

    13
  • Scatter Chart

    Scatter Chart

    8
  • Pie Chart

    Pie Chart

    7
  • Pricing Card

    Pricing Card

More in Dashboards

View all
  • Dashboard with Collapsible Sidebar

    Dashboard with Collapsible Sidebar

    2.6K
  • Stat Card

    Stat Card

    46
  • Sidebar

    Sidebar

    392
  • Chart Component

    Chart Component

    11
  • SaaS Template

    SaaS Template

    2.7K
  • Fitness Bento Grid

    Fitness Bento Grid

    42
  • Financial Bento Grid

    Financial Bento Grid

    129
  • Course Design Cards

    Course Design Cards

    1.3K