retroui

Bar Chart

Dashboards 3

About

A vertical or horizontal bar chart built on Recharts for visualizing categorical data with support for multiple series, stacking, custom colors, and tooltips.

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

"use client";

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

const data = [
  { name: "Jan", orders: 12 },
  { name: "Feb", orders: 32 },
  { name: "Mar", orders: 19 },
  { name: "Apr", orders: 35 },
  { name: "May", orders: 40 },
  { name: "Jun", orders: 25 },
];

export default function BarChartStyleDefault() {
  return <BarChart data={data} index="name" categories={["orders"]} />;
}

Dependencies

More by retroui

View all
  • Menu

    Menu

    29
  • Table

    Table

    15
  • Area Chart

    Area Chart

    13
  • Popover

    Popover

    11
  • Line Chart

    Line Chart

  • Badge

    Badge

  • Tooltip

    Tooltip

  • Toggle Group

    Toggle Group

More in Dashboards

View all
  • Dashboard with Collapsible Sidebar

    Dashboard with Collapsible Sidebar

    2.6K
  • serf dashboard

    serf dashboard

    5
  • Glassy Dashboard

    Glassy Dashboard

    327
  • Adjustable Glass Dashboard

    Adjustable Glass Dashboard

    1.1K
  • Chart Component

    Chart Component

    12
  • Dashboard Shell

    Dashboard Shell

    178
  • App Dashboard Layout

    App Dashboard Layout

    520
  • Stat Card

    Stat Card

    51