Skip to main content

Bar Chart

Compare values side by side in bars, with a tooltip on each.

View as Markdown

Installation

Component API

PropTypeDefaultDescription
dataBarChartDatum[]-One bar per item, left to right.
One bar per item, left to right.
ariaLabelstring-What the chart shows, for screen readers and its table.
What the chart shows, for screen readers and its table.
format(value: number) => string-How a value reads in the tooltip, the axis and the table.
How a value reads in the tooltip, the axis and the table.
heightnumber200The plot's height in pixels.
The plot's height in pixels.
classNamestring-