Features · type

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.

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

LibraryStatusOptionVerificationSource
Chart.jsmanualPlugin.afterDatasetsDrawmechanism · weakchart.js/dist/types/index.d.ts:1051
RechartsnativeBarChart.stackOffset=expandtypes · strongrecharts/types/util/types.d.ts:1396
Apache EChartsmanualseries.type=custommechanism · weakecharts/types/dist/shared.d.ts:11176
HighchartsnativeplotOptions.column.stacking=percenttypes · stronghighcharts/options/column.d.ts:1274
Plotly.jsnativelayout.barnorm=percenttypes · strongplot-schema.json#layout.layoutAttributes.barnorm
NivomanualLine.layersmechanism · weak@nivo/line/dist/types/types.d.ts:171
VictorymanualVictoryBarProps.dataComponentmechanism · weakvictory-core/lib/victory-util/common-props.d.ts:9
visxnativeBarStack.offsettypes · strong@visx/shape/lib/types/D3ShapeConfig.d.ts:78
ApexChartsnativechart.stackType=100%types · strongapexcharts/types/apexcharts.d.ts:2163
Tremor (npm)nativeBarChart.stacktypes · strong@tremor/react/dist/index.d.ts:101
Observable Plotnativegrep: offsetstackY offset normalizegrep · weak@observablehq/plot/src/scales.d.ts:435
Vega-Litenativegrep: normalizegrep · weak7741: "normalizedNumberFormat"
AG Chartsnativeseries.normalizedTotypes · strongag-charts-types/dist/types/src/series/cartesian/areaOptions.d.ts:88
amCharts 5nativegrep: valueYTotalPercentgrep · weak@amcharts/amcharts5/.internal/charts/xy/series/XYSeries.d.ts:236
Google ChartsnativeColumnChartOptions.isStackedtypes · strong@types/google.visualization/index.d.ts:731
uPlotmanualOptions.hooksmechanism · weakuplot/dist/uPlot.d.ts:394
TradingView Lightweight Chartsunknown—conflict · unknown—
MUI X ChartsnativeBarChart.series.stackOffset=expandtypes · strong@mui/x-charts/models/seriesType/bar.d.mts:68
Mermaid (chart-ish diagrams only)unknown—conflict · unknown—
AntV G2nativegrep: normalizeYgrep · weak@antv/g2/lib/index.d.ts:37