About
A compact bar chart that renders a short series of values as vertical bars with an accessible label, for quick at-a-glance distributions inside cards and tables.
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
import { BarChart } from "@/components/ui/bar-chart";
export default function BarChartDemo() {
return (
<div className="w-full max-w-sm">
<BarChart
label="Tickets opened by day, this week"
values={[42, 58, 51, 64, 47, 22, 18]}
labels={["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]}
/>
</div>
);
}
















