Atelier UI

Search components…

Search components…

Bar Chart

Responsive vertical bar chart with gridlines, hover tooltips, mount animation and a hidden accessible data table.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

BarChartProps

Also accepts all props of Omit<React.ComponentProps<"div">, "children">

PropTypeDefaultDescription
data* requiredBarChartDatum[]——
heightnumber220Plot area height in px
toneBarChartTone"primary"—
titlestring"Bar chart"Accessible title used in the summary
valuePrefixstring""—
valueSuffixstring""—

Install

$ npx shadcn@latest add https://chromotion.dev/r/bar-chart.json

More like this