Skip to content
Browse library
BIU UI/Components/Bar Chart
COMPONENTSPro

Bar Chart

Explore the Bar Chart component and try its interactive examples.

INTERACTIVE PREVIEW

Preview

Loading preview…
GET STARTED

Installation

BIU UI ProEarly Access · Coming Soon
Bar Chart source is part of BIU UI Pro

The interactive preview and API reference are open to try right here. Full single-file TSX source and @biudev-pro/bar-chart shadcn Registry installs are reserved for BIU UI Pro. Meanwhile, all 41 core components and 2 starter blocks are free and open source under MIT.

npx shadcn@latest add @biudev-pro/bar-chart

Usage

Start with this example, then adjust the import path for your project.

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

export function Example() {
  return (
    <BarChart
      title="Spend by model"
      data={[
        { label: "Mon", sonnet: 142, gpt: 88 },
        { label: "Tue", sonnet: 168, gpt: 104 },
        { label: "Wed", sonnet: 196, gpt: 118 },
      ]}
      series={[
        { key: "sonnet", label: "Sonnet", color: "#6366f1" },
        { key: "gpt", label: "GPT-5", color: "#0ea5e9" },
      ]}
    />
  );
}

Examples

Try each example or switch to its code.

API reference

Properties and defaults from the component source. An asterisk marks a required property; a dash means no explicit default.

BarChartSeries

BarChartDatum

BarChartProps

Source

BIU UI ProEarly Access · Coming Soon
Bar Chart source is part of BIU UI Pro

The interactive preview and API reference are open to try right here. Full single-file TSX source and @biudev-pro/bar-chart shadcn Registry installs are reserved for BIU UI Pro. Meanwhile, all 41 core components and 2 starter blocks are free and open source under MIT.

npx shadcn@latest add @biudev-pro/bar-chart