Stacked area
native
Areas stacked on top of each other
Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.type=stacked-area.
Source: chartkit:packages/core/src/generated/schema.ts:24
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
}
}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.stacked.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | native | grep: stackedscales.y.stacked + fill | grep · weak | chart.js/dist/types/index.d.ts:86 |
| Recharts | native | Area.stackId | types · strong | recharts/types/cartesian/Area.d.ts:202 |
| Apache ECharts | native | series.stack | types · strong | echarts/types/dist/shared.d.ts:8415 |
| Highcharts | native | plotOptions.area.stacking=normal | types · strong | highcharts/options/area.d.ts:1277 |
| Plotly.js | native | trace.stackgroup | types · strong | plot-schema.json#traces.{scatter}.attributes.stackgroup |
| Nivo | native | Line.yScaleyScale.stacked + enableArea | types · strong | @nivo/line/dist/types/types.d.ts:132 |
| Victory | native | VictoryStack | types · strong | victory-stack/lib/victory-stack.d.ts:15 |
| visx | native | AreaStack, AnimatedAreaStack | types · strong | @visx/shape/lib/shapes/AreaStack.d.ts:5 |
| ApexCharts | native | chart.stacked | types · strong | apexcharts/types/apexcharts.d.ts:2162 |
| Tremor (npm) | native | AreaChart.stack | types · strong | @tremor/react/dist/index.d.ts:92 |
| Observable Plot | native | areaY, stackYstack transform is implicit for areaY | types · strong | @observablehq/plot/src/marks/area.d.ts:198 |
| Vega-Lite | native | grep: stackencoding.y.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: stackedXYSeries settings stacked:true | grep · weak | @amcharts/amcharts5/.internal/plugins/json/Classes.d.ts:177 |
| Google Charts | native | AreaChartOptions.isStacked | types · strong | @types/google.visualization/index.d.ts:936 |
| uPlot | manual | Options.hooksuPlot has no stacking; demo shows manual cumulative data + bands | 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.stack | types · strong | @mui/x-charts/models/seriesType/common.d.mts:85 |
| Mermaid (chart-ish diagrams only) | unknown | grep: stack | conflict · unknown | — |
| AntV G2 | native | grep: stackY | grep · weak | @antv/g2/lib/index.d.ts:27 |