Features · type

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.

B is higher.B is higher.ab020406080100AB
{
  "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.

LibraryStatusOptionVerificationSource
Chart.jsmanualPlugin.afterDatasetsDrawrequires pre-normalised datamechanism · weakchart.js/dist/types/index.d.ts:1051
RechartsnativeAreaChart.stackOffset=expandtypes · strongrecharts/types/util/types.d.ts:1396
Apache EChartsmanualseries.type=custompre-normalise datamechanism · weakecharts/types/dist/shared.d.ts:11176
HighchartsnativeplotOptions.area.stacking=percenttypes · stronghighcharts/options/area.d.ts:1277
Plotly.jsnativetrace.groupnorm=percenttypes · strongplot-schema.json#traces.{scatter}.attributes.groupnorm
NivomanualLine.layersmechanism · weak@nivo/line/dist/types/types.d.ts:171
VictorymanualVictoryBarProps.dataComponentmechanism · weakvictory-core/lib/victory-util/common-props.d.ts:9
visxnativeAreaStack.offsetd3 stackOffsetExpand ('expand')types · strong@visx/shape/lib/types/D3ShapeConfig.d.ts:78
ApexChartsnativechart.stackType=100%types · strongapexcharts/types/apexcharts.d.ts:2163
Tremor (npm)nativeAreaChart.stackstack + type="percent"types · strong@tremor/react/dist/index.d.ts:92
Observable Plotnativegrep: offsetstackY offset 'normalize'grep · weak@observablehq/plot/src/scales.d.ts:435
Vega-Litenativegrep: normalizestack: 'normalize'grep · weak7741: "normalizedNumberFormat"
AG Chartsnativeseries.normalizedTotypes · strongag-charts-types/dist/types/src/series/cartesian/areaOptions.d.ts:88
amCharts 5nativegrep: valueYShowvalueYShow:'valueYTotalPercent' on stacked seriesgrep · weak@amcharts/amcharts5/.internal/charts/xy/series/XYSeries.d.ts:261
Google ChartsnativeAreaChartOptions.isStackedisStacked:'percent'types · strong@types/google.visualization/index.d.ts:936
uPlotmanualOptions.hooksmechanism · weakuplot/dist/uPlot.d.ts:394
TradingView Lightweight Chartsmanualgrep: ICustomSeriesPaneViewmechanism · weak1629: addCustomSeries<TData extends CustomData<HorzScaleItem>, TOptions extends CustomSeriesOptions, TPartialOptions extends SeriesPartialOptions<TOptions> = SeriesPartialOptions<TOptions>>(customPaneView
MUI X ChartsnativeLineChart.series.stackOffset=expandtypes · strong@mui/x-charts/models/seriesType/line.d.mts:105
Mermaid (chart-ish diagrams only)unknown—conflict · unknown—
AntV G2nativegrep: normalizeYgrep · weak@antv/g2/lib/index.d.ts:37