Bar chart component built on Recharts with legend, tooltip, and stacking support.
npx shadcn@latest add @preskok/bar-chartimport { BarChart } from "@/components/ui/preskok-ui/bar-chart"
const chartData = [
{ month: "January", Desktop: 186, Mobile: 80 },
{ month: "February", Desktop: 305, Mobile: 200 },
]
const chartConfig = {
Desktop: { label: "Desktop", color: "#2563eb" },
Mobile: { label: "Mobile", color: "#60a5fa" },
}
export function BarChartDemo() {
return <BarChart data={chartData} dataKey="month" config={chartConfig} />
}