Bar chart with rounded bars, stacking, percentage mode, and an interactive legend.
npx shadcn@latest add @preskok/bar-chartimport { BarChart } from "@/components/ui/preskok-ui/bar-chart"
const data = [
{ month: "January", desktop: 186, mobile: 80 },
{ month: "February", desktop: 305, mobile: 200 },
]
const config = {
desktop: { label: "Desktop", color: "var(--chart-1)" },
mobile: { label: "Mobile", color: "var(--chart-2)" },
} as const
export function BarChartDemo() {
return <BarChart config={config} data={data} dataKey="month" />
}default, stacked, and percentbarProps.radius