Bar
Compare magnitudes across categories with vertical or horizontal bars.
Bars and a line on one chart over the same categories, like revenue as bars with growth rate as a line. One shared value axis, or a second axis on the right for the line.
Bars and a line on one chart over the same categories, like revenue with its growth rate. One shared axis, or a second axis on the right when the line has its own unit.
Revenue by month as bars, growth as a line on a percent axis.
2026, by month
axis="dual" gives the line its own scale on the right, with ticks on the same gridlines. Hover or Tab to a column to read every value at once; arrow keys move column by column. Bars alone stay BarChart, lines alone stay LineChart.
import { Combo } from "agentic-ds-kit";From contracts/combochart.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
| data | array | Yes | — | One row per category, in the order shown. |
| bars | array | Yes | — | One to four bar series. They take --chart-1, --chart-2, --chart-4 and --chart-5 in order, so the line colour stays apart. |
| line | object | Yes | — | One line series, drawn smooth in --chart-3 with no area fill and square ends. |
| axis | shared | dual | No | shared | shared puts bars and line on one left axis, for the same unit. dual gives the line its own axis on the right, for a different unit like a percent; its ticks line up with the left gridlines. With dual, the right axis fits the line's own range and does not force zero, so a running total like MRR keeps its shape. |
| stack | none | stacked | No | none | stacked draws one bar per column: positive values pile up from zero and negative values pile down, in series order, with a hairline (surface.card) between segments. Use it for movements that add up, like gains and losses in a period, with the line as the net. With none, a single bar series still goes below zero for negative values, in one colour: use it for a daily net change with the running total as the line. |
| valueFormatter | object | No | — | Both default to the chart format: 1,240, 12.4k, 1.2M. With axis shared, the left axis uses the bars formatter. |
| title | string | No | — | Chart heading on the frame, like the other charts. Also names the plot for screen readers. |
| description | string | No | — | — |
| height | number | No | 240 | — |
| isLoading | boolean | No | false | Dims the plot and sets aria-busy while new data loads. |
| emptyLabel | string | No | No data for this range | — |
| error | string | No | — | When set, the plot is replaced by the kit's "Couldn't load" row (role=alert) with this message. Say what failed and that data is safe, like "Stripe didn't answer in time." |
| onRetry | function | No | — | Shows an outline Retry Button on the error row. |
| tooltipNote | function | No | — | (index) => string | undefined. One sentence under the tooltip rows for that column, like "The largest one-day drop in this period." Read with the tooltip; keep it short and plain. |
| actions | slot | No | — | Kit Buttons in the chart header, before the Table toggle, like an icon-only Ask. ghost sm reads quietest. Setting it draws the frame even with no title. |
Compare magnitudes across categories with vertical or horizontal bars.
Change and progress over ordered samples as a line or area chart.
Part-to-whole share for a handful of segments, as a donut or solid pie.
A ranked list: each row shows a label and its value, with a quiet horizontal bar behind the label sized against the largest value or the total.