BarChart #

Renders a simple vertical bar chart suitable for docs dashboards and release snapshots.

Props #

PropTypeRequiredDescription
data{ label: string, value: number }[]YesData points to render.
heightnumberNoChart canvas height in pixels. Default: 180.
showValuesbooleanNoShows numeric values under labels. Default: true.
classNamestringNoOptional wrapper class names.

Live example #

Mon

12

Tue

18

Wed

15

Thu

22

Fri

17

Code #

mdx
<BarChart
data={[
{ label: 'Q1', value: 22 },
{ label: 'Q2', value: 28 },
{ label: 'Q3', value: 19 },
{ label: 'Q4', value: 31 },
]}
/>