ElevateIQ DigitalsElevateIQ DigitalsComponent Library

Bar chart

Magnitude by category: vertical or horizontal, grouped or stacked, with optional value labels.

When to use it

Horizontal for long category names. One series is one colour; a datum’s own color is for status (won, overdue), not decoration. On a stack, labels show the total.

Grouped, stacked and horizontal

Options

Everything you can pass to Bar chart.

PropTypeDefaultWhat it does
categoriesstring[]—The x-axis labels, in order.
series{ name, data: (number | null)[], color? }[]—Colours default to --chart-1… in order. null is a gap.
legendboolean2+ seriesHTML legend above the plot.
data{ name, value, color? }[]—Single-series shorthand instead of categories + series.
horizontalbooleanfalseBars grow rightwards, categories top to bottom.
stackedbooleanfalseSegments separated by a surface gap.
labelsbooleanfalseValue at each bar end; the total on a stack.
heightnumber | string—Plot height. The HTML legend sits outside it.
valueFormatter(value) => stringen-IN, 2 dpAxis labels, tooltips, value labels and the hidden data table.
aria-labelstring—What the chart shows. Also captions its hidden data table.
loading / emptyTitle / emptyDescriptionboolean / string—Passed to Chart: skeleton, and the empty state when every value is zero.