Features · mark

Bar width / gap / padding

native

Control bar thickness and spacing

Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.mark.gap.

Source: chartkit:packages/core/src/generated/schema.ts:855

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": {
    "gap": 0.35
  }
}

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: mark.bar.width.md.

LibraryStatusOptionVerificationSource
Chart.jsnativeChartConfiguration.data.datasets.barPercentage, ChartConfiguration.data.datasets.categoryPercentagetypes · strongchart.js/dist/types/index.d.ts:114
RechartsnativeBarChart.barCategoryGap, BarChart.barGaptypes · strongrecharts/types/util/types.d.ts:1323
Apache EChartsnativeseries.barWidth, series.barGaptypes · strongecharts/types/dist/shared.d.ts:11141
HighchartsnativeplotOptions.column.pointPadding, plotOptions.column.groupPaddingtypes · stronghighcharts/options/column.d.ts:1124
Plotly.jsnativelayout.bargap, layout.bargroupgaptypes · strongplot-schema.json#layout.layoutAttributes.bargap
NivonativeBar.padding, Bar.innerPaddingtypes · strong@nivo/bar/dist/types/types.d.ts:144
VictorynativeVictoryBar.barWidth, VictoryBar.barRatiotypes · strongvictory-bar/lib/victory-bar.d.ts:10
visxnativegrep: paddingInnerband scale paddinggrep · weak@visx/scale/lib/types/ScaleConfig.d.ts:31
ApexChartsnativeplotOptions.bar.columnWidth, plotOptions.bar.barHeighttypes · strongapexcharts/types/apexcharts.d.ts:3100
Tremor (npm)nativeBarChart.barCategoryGaptypes · strong@tremor/react/dist/index.d.ts:103
Observable Plotnativegrep: insetinset + band paddinggrep · weak@observablehq/plot/src/scales.d.ts:1
Vega-Litenativegrep: binSpacingmark.width / scale.paddingInnergrep · weak3067: "binSpacing"
AG Chartsnativeseries.widthtypes · strongag-charts-types/dist/types/src/series/cartesian/barOptions.d.ts:80
amCharts 5nativegrep: widthcolumns.template width %grep · weak@amcharts/amcharts5/.internal/plugins/exporting/Exporting.d.ts:48
Google ChartsnativeColumnChartOptions.bartypes · strong@types/google.visualization/index.d.ts:721
uPlotpartialgrep: sizebars({size:[factor, max]})grep · weak70: /** destroys DOM, removes resize & scroll listeners, etc. */
TradingView Lightweight Chartsnone—absence · absence—
MUI X ChartsnativeBarChart.xAxistypes · strong@mui/x-charts/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.mts:25
Mermaid (chart-ish diagrams only)none—absence · absence—
AntV G2nativegrep: paddinggrep · weak@antv/g2/lib/runtime/component.d.ts:14