data | array | Yes | — | Array of data points with category, group, and value fields. |
categoryAccessor | string | function | — | "category" | Field name or function to access category values. |
groupBy | string | function | Yes | — | Field name or function to access group values. Each group becomes a side-by-side bar. |
valueAccessor | string | function | — | "value" | Field name or function to access numeric values. |
orientation | "vertical" | "horizontal" | — | "vertical" | Chart orientation. |
categoryLabel | string | — | — | Label for the category axis. |
valueLabel | string | — | — | Label for the value axis. |
valueFormat | function | — | — | Format function for value axis tick labels. |
colorBy | string | function | — | groupBy | Field name or function to determine bar color. Defaults to groupBy. |
colorScheme | string | array | — | "category10" | Color scheme name or custom colors array. |
sort | boolean | "asc" | "desc" | function | — | false | Sort categories by total value. Accepts true, "asc", "desc", or a custom comparator. Default false preserves insertion order. |
barPadding | number | — | 5 | Padding between bar groups in pixels. |
roundedTop | number | — | — | Rounded corner radius on bar tops (the end away from baseline). |
gradientFill | { stops } | — | — | Tip-to-base gradient on each bar using { stops: [{ offset: 0–1, color?, opacity? }] }. |
animate | boolean | object | — | false | Enable animated intro and smooth data-change transitions. `true` for defaults (300ms ease-out, intro enabled), or `{ duration, easing, intro }`. Set `{ intro: false }` to disable intro. |
enableHover | boolean | — | true | Enable hover annotations on bars. |
brush | boolean | — | false | Enable a value-axis brush overlay for range selection. Also enabled when linkedBrush is set. |
onBrush | function | — | — | Callback with { r: [min, max] }, or null when the brush clears. |
showGrid | boolean | — | false | Show background grid lines. |
showLegend | boolean | — | true | Show a legend for groups. |
tooltip | object | function | — | — | Tooltip configuration or render function. |
width | number | — | 600 | Chart width in pixels. |
height | number | — | 400 | Chart height in pixels. |
margin | object | — | { top: 50, bottom: 60, left: 70, right: 40 } | Margin around the chart area. |
title | string | — | — | Chart title displayed at the top. |
frameProps | object | — | — | Additional StreamOrdinalFrame props for advanced customization. |