100% stacked bar
native
Stacked bars normalised to 100%
Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.mark.stack=percent.
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": "percent"
}
}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.percent.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | manual | Plugin.afterDatasetsDraw | mechanism · weak | chart.js/dist/types/index.d.ts:1051 |
| Recharts | native | BarChart.stackOffset=expand | types · strong | recharts/types/util/types.d.ts:1396 |
| Apache ECharts | manual | series.type=custom | mechanism · weak | echarts/types/dist/shared.d.ts:11176 |
| Highcharts | native | plotOptions.column.stacking=percent | types · strong | highcharts/options/column.d.ts:1274 |
| Plotly.js | native | layout.barnorm=percent | types · strong | plot-schema.json#layout.layoutAttributes.barnorm |
| Nivo | manual | Line.layers | mechanism · weak | @nivo/line/dist/types/types.d.ts:171 |
| Victory | manual | VictoryBarProps.dataComponent | mechanism · weak | victory-core/lib/victory-util/common-props.d.ts:9 |
| visx | native | BarStack.offset | types · strong | @visx/shape/lib/types/D3ShapeConfig.d.ts:78 |
| ApexCharts | native | chart.stackType=100% | types · strong | apexcharts/types/apexcharts.d.ts:2163 |
| Tremor (npm) | native | BarChart.stack | types · strong | @tremor/react/dist/index.d.ts:101 |
| Observable Plot | native | grep: offsetstackY offset normalize | grep · weak | @observablehq/plot/src/scales.d.ts:435 |
| Vega-Lite | native | grep: normalize | grep · weak | 7741: "normalizedNumberFormat" |
| AG Charts | native | series.normalizedTo | types · strong | ag-charts-types/dist/types/src/series/cartesian/areaOptions.d.ts:88 |
| amCharts 5 | native | grep: valueYTotalPercent | grep · weak | @amcharts/amcharts5/.internal/charts/xy/series/XYSeries.d.ts:236 |
| 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 | unknown | — | conflict · unknown | — |
| MUI X Charts | native | BarChart.series.stackOffset=expand | types · strong | @mui/x-charts/models/seriesType/bar.d.mts:68 |
| Mermaid (chart-ish diagrams only) | unknown | — | conflict · unknown | — |
| AntV G2 | native | grep: normalizeY | grep · weak | @antv/g2/lib/index.d.ts:37 |