100% stacked area
native
Stacked areas 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": "stacked-area",
"data": [
{
"x": "A",
"a": 2,
"b": 3
},
{
"x": "B",
"a": 4,
"b": 2
}
],
"encoding": {
"x": "x",
"y": [
"a",
"b"
]
},
"a11y": {
"alt": "B is higher."
},
"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.area.percent.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | manual | Plugin.afterDatasetsDrawrequires pre-normalised data | mechanism · weak | chart.js/dist/types/index.d.ts:1051 |
| Recharts | native | AreaChart.stackOffset=expand | types · strong | recharts/types/util/types.d.ts:1396 |
| Apache ECharts | manual | series.type=custompre-normalise data | mechanism · weak | echarts/types/dist/shared.d.ts:11176 |
| Highcharts | native | plotOptions.area.stacking=percent | types · strong | highcharts/options/area.d.ts:1277 |
| Plotly.js | native | trace.groupnorm=percent | types · strong | plot-schema.json#traces.{scatter}.attributes.groupnorm |
| 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 | AreaStack.offsetd3 stackOffsetExpand ('expand') | 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 | AreaChart.stackstack + type="percent" | types · strong | @tremor/react/dist/index.d.ts:92 |
| Observable Plot | native | grep: offsetstackY offset 'normalize' | grep · weak | @observablehq/plot/src/scales.d.ts:435 |
| Vega-Lite | native | grep: normalizestack: '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: valueYShowvalueYShow:'valueYTotalPercent' on stacked series | grep · weak | @amcharts/amcharts5/.internal/charts/xy/series/XYSeries.d.ts:261 |
| Google Charts | native | AreaChartOptions.isStackedisStacked:'percent' | types · strong | @types/google.visualization/index.d.ts:936 |
| uPlot | manual | Options.hooks | mechanism · weak | uplot/dist/uPlot.d.ts:394 |
| TradingView Lightweight Charts | manual | grep: ICustomSeriesPaneView | mechanism · weak | 1629: addCustomSeries<TData extends CustomData<HorzScaleItem>, TOptions extends CustomSeriesOptions, TPartialOptions extends SeriesPartialOptions<TOptions> = SeriesPartialOptions<TOptions>>(customPaneView |
| MUI X Charts | native | LineChart.series.stackOffset=expand | types · strong | @mui/x-charts/models/seriesType/line.d.mts:105 |
| Mermaid (chart-ish diagrams only) | unknown | — | conflict · unknown | — |
| AntV G2 | native | grep: normalizeY | grep · weak | @antv/g2/lib/index.d.ts:37 |