Features · type

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.

Lane C has more.Lane C has more.051015AC
{
  "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.

LibraryStatusOptionVerificationSource
Chart.jsnativegrep: stackedscales.x/y.stackedgrep · weakchart.js/dist/types/index.d.ts:86
RechartsnativeBar.stackIdtypes · strongrecharts/types/cartesian/Bar.d.ts:71
Apache EChartsnativeseries.stacktypes · strongecharts/types/dist/shared.d.ts:8415
HighchartsnativeplotOptions.column.stacking=normaltypes · stronghighcharts/options/column.d.ts:1274
Plotly.jsnativelayout.barmode=stacktypes · strongplot-schema.json#layout.layoutAttributes.barmode
NivonativeBar.groupMode=stackedtypes · strong@nivo/bar/dist/types/types.d.ts:167
VictorynativeVictoryStacktypes · strongvictory-stack/lib/victory-stack.d.ts:15
visxnativeBarStack, AnimatedBarStacktypes · strong@visx/shape/lib/shapes/BarStack.d.ts:12
ApexChartsnativechart.stackedtypes · strongapexcharts/types/apexcharts.d.ts:2162
Tremor (npm)nativeBarChart.stacktypes · strong@tremor/react/dist/index.d.ts:101
Observable PlotnativebarY, stackYimplicit stacktypes · strong@observablehq/plot/src/marks/bar.d.ts:203
Vega-Litenativegrep: stackgrep · weak592: "description"
AG Chartsnativeseries.stackedtypes · strongag-charts-types/dist/types/src/series/cartesian/areaOptions.d.ts:90
amCharts 5nativegrep: stackedgrep · weak@amcharts/amcharts5/.internal/plugins/json/Classes.d.ts:177
Google ChartsnativeColumnChartOptions.isStackedtypes · strong@types/google.visualization/index.d.ts:731
uPlotmanualOptions.hooksmechanism · weakuplot/dist/uPlot.d.ts:394
TradingView Lightweight Chartsnone—absence · absence—
MUI X ChartsnativeBarChart.series.stacktypes · strong@mui/x-charts/models/seriesType/common.d.mts:85
Mermaid (chart-ish diagrams only)unknown—conflict · unknown—
AntV G2nativegrep: stackYgrep · weak@antv/g2/lib/index.d.ts:27