๐ŸŽฏ Nexus teaches Next.js from foundations to professional systemsโ€ขโšก App Router, React 19, and Tailwind v4 in one learning pathโ€ข๐Ÿงฉ Inspect real components, layouts, and reusable patternsโ€ข๐Ÿ› ๏ธ Build production discipline, not just polished demosโ€ข๐Ÿ“š Tracks, references, and design studies in one placeโ€ข๐ŸŽฏ Nexus teaches Next.js from foundations to professional systemsโ€ขโšก App Router, React 19, and Tailwind v4 in one learning pathโ€ข๐Ÿงฉ Inspect real components, layouts, and reusable patternsโ€ข๐Ÿ› ๏ธ Build production discipline, not just polished demosโ€ข๐Ÿ“š Tracks, references, and design studies in one placeโ€ข๐ŸŽฏ Nexus teaches Next.js from foundations to professional systemsโ€ขโšก App Router, React 19, and Tailwind v4 in one learning pathโ€ข๐Ÿงฉ Inspect real components, layouts, and reusable patternsโ€ข๐Ÿ› ๏ธ Build production discipline, not just polished demosโ€ข๐Ÿ“š Tracks, references, and design studies in one placeโ€ข๐ŸŽฏ Nexus teaches Next.js from foundations to professional systemsโ€ขโšก App Router, React 19, and Tailwind v4 in one learning pathโ€ข๐Ÿงฉ Inspect real components, layouts, and reusable patternsโ€ข๐Ÿ› ๏ธ Build production discipline, not just polished demosโ€ข๐Ÿ“š Tracks, references, and design studies in one placeโ€ข
UI

BarChart

Responsive bar charts powered by Recharts with multi-series and stacked support.

Preview

Installation

npm install recharts

Usage

import { BarChart } from '@/components/ui/BarChart'
const data = [
{ month: 'Jan', revenue: 4200, expenses: 2800 },
{ month: 'Feb', revenue: 5800, expenses: 3100 },
// ...
]
export default function Page() {
return (
<BarChart
data={data}
xAxisKey="month"
series={[
{ dataKey: 'revenue', name: 'Revenue', color: '#F45A5A' },
{ dataKey: 'expenses', name: 'Expenses', color: '#6366f1' },
]}
/>
)
}

Variants

Single Series

Stacked

Prompt Preview

Copy a prompt that recreates this UI

Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.

Copy-ready AI prompt

Starts from the current visual reference and project constraints.

Tweak only product-specific copy or data after the first generation pass.

Props

PropTypeDefaultDescription
data*BarChartDataPoint[]-Array of data objects
series*BarChartSeries[]-Series definitions with dataKey, name, color
xAxisKey*string-Key in data used for X axis labels
heightnumber300Chart height in pixels
showGridbooleantrueShow background grid lines
showLegendbooleantrueShow series legend
showTooltipbooleantrueShow hover tooltip
stackedbooleanfalseStack bars on top of each other
classNamestring-Extra CSS classes for the wrapper
โ† Back to UI Components