UI Library

BarChart

Sessions 51 Retries 17
Prop Type Default Value Notes
ariaLabelstring?—
Accessible name for the chart image.
classNamestring?''
Extra classes on the chart root.
columnsChartColumn[]—
Series data: each column has a label and its segments (a segment label feeds the legend, a column tip the tooltip). The eye resets to the demo columns.
heightnumber | string?—
Plot-box height override; a number is px, a string is used verbatim.
legendbooleantrue
Render the legend when a segment carries a label.
size'xs' | 'sm' | 'md' | 'lg' | 'xl' | number'md'
Chart scale; the plot, columns, axis, and legend all follow it.
format(value: number) => stringString—Legend total formatter; the demo uses the default.