Stacked bar
native
Bars stacked per category
Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.mark.stack=stack.
Source: chartkit:packages/core/src/generated/schema.ts:843
ChartKit spec
Passed validate() during npm run matrix:refresh. The SVG is the server render.
{
"version": "1",
"type": "bar",
"data": [
{
"lane": "A",
"stops": 12
},
{
"lane": "C",
"stops": 15
}
],
"encoding": {
"x": "lane",
"y": "stops"
},
"a11y": {
"alt": "Lane C has more."
},
"size": {
"width": 640,
"height": 260
},
"mark": {
"stack": "stack"
}
}Other libraries
Option names are the paths recorded in the matrix. A grep-only cell names the identifier that matched, not a render test. Markdown copy: type.bar.stacked.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | native | grep: stackedscales.x/y.stacked | grep · weak | chart.js/dist/types/index.d.ts:86 |
| Recharts | native | Bar.stackId | types · strong | recharts/types/cartesian/Bar.d.ts:71 |
| Apache ECharts | native | series.stack | types · strong | echarts/types/dist/shared.d.ts:8415 |
| Highcharts | native | plotOptions.column.stacking=normal | types · strong | highcharts/options/column.d.ts:1274 |
| Plotly.js | native | layout.barmode=stack | types · strong | plot-schema.json#layout.layoutAttributes.barmode |
| Nivo | native | Bar.groupMode=stacked | types · strong | @nivo/bar/dist/types/types.d.ts:167 |
| Victory | native | VictoryStack | types · strong | victory-stack/lib/victory-stack.d.ts:15 |
| visx | native | BarStack, AnimatedBarStack | types · strong | @visx/shape/lib/shapes/BarStack.d.ts:12 |
| ApexCharts | native | chart.stacked | types · strong | apexcharts/types/apexcharts.d.ts:2162 |
| Tremor (npm) | native | BarChart.stack | types · strong | @tremor/react/dist/index.d.ts:101 |
| Observable Plot | native | barY, stackYimplicit stack | types · strong | @observablehq/plot/src/marks/bar.d.ts:203 |
| Vega-Lite | native | grep: stack | grep · weak | 592: "description" |
| AG Charts | native | series.stacked | types · strong | ag-charts-types/dist/types/src/series/cartesian/areaOptions.d.ts:90 |
| amCharts 5 | native | grep: stacked | grep · weak | @amcharts/amcharts5/.internal/plugins/json/Classes.d.ts:177 |
| Google Charts | native | ColumnChartOptions.isStacked | types · strong | @types/google.visualization/index.d.ts:731 |
| uPlot | manual | Options.hooks | mechanism · weak | uplot/dist/uPlot.d.ts:394 |
| TradingView Lightweight Charts | none | — | absence · absence | — |
| MUI X Charts | native | BarChart.series.stack | types · strong | @mui/x-charts/models/seriesType/common.d.mts:85 |
| Mermaid (chart-ish diagrams only) | unknown | — | conflict · unknown | — |
| AntV G2 | native | grep: stackY | grep · weak | @antv/g2/lib/index.d.ts:27 |