Band / category scale
native
Discrete categories with bands
Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.encoding.x.scale.type=band.
Source: chartkit:packages/core/src/generated/schema.ts:683
ChartKit spec
Passed validate() during npm run matrix:refresh. The SVG is the server render.
{
"version": "1",
"type": "line",
"data": [
{
"quarter": "Q1",
"units": 40
},
{
"quarter": "Q2",
"units": 55
}
],
"encoding": {
"x": {
"field": "quarter",
"scale": {
"type": "band"
}
},
"y": "units"
},
"a11y": {
"alt": "Units rose in Q2."
},
"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: scale.band.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | native | grep: CategoryScale | grep · weak | chart.js/dist/types/index.d.ts:3295 |
| Recharts | native | XAxis.type=category | types · strong | @types/react/index.d.ts:3709 |
| Apache ECharts | native | xAxis.type=category | types · strong | echarts/types/dist/shared.d.ts:2729 |
| Highcharts | native | xAxis.type=category, xAxis.categories | types · strong | highcharts/highcharts.d.ts:108788 |
| Plotly.js | native | layout.xaxis.type=category | types · strong | plot-schema.json#layout.layoutAttributes.xaxis.type |
| Nivo | native | Bar.indexScale | types · strong | @nivo/bar/dist/types/types.d.ts:146 |
| Victory | native | VictoryAxis.tickValues | types · strong | victory-core/lib/victory-theme/types.d.ts:60 |
| visx | native | grep: scaleBand | grep · weak | @visx/shape/lib/shapes/BarGroupHorizontal.d.ts:3 |
| ApexCharts | native | xaxis.categories | types · strong | apexcharts/types/apexcharts.d.ts:4902 |
| Tremor (npm) | native | LineChart.index | types · strong | @tremor/react/dist/index.d.ts:58 |
| Observable Plot | native | grep: band | grep · weak | @observablehq/plot/src/scales.d.ts:188 |
| Vega-Lite | native | grep: band | grep · weak | 683: "description" |
| AG Charts | native | grep: category | grep · weak | ag-charts-types/dist/types/src/main-scene.d.ts:13 |
| amCharts 5 | native | CategoryAxis | types · strong | @amcharts/amcharts5/.internal/charts/xy/axes/CategoryAxis.d.ts:108 |
| Google Charts | native | grep: stringstring domain column | grep · weak | @types/google.visualization/index.d.ts:3 |
| uPlot | partial | grep: valuescategory labels via axis values fn | grep · weak | 82: /** sets the legend to the values of the specified idx */ |
| TradingView Lightweight Charts | none | — | absence · absence | — |
| MUI X Charts | native | LineChart.xAxis.scaleType=band | types · strong | @mui/x-charts/models/axis.d.mts:365 |
| Mermaid (chart-ish diagrams only) | native | MermaidConfig.xyChartx-axis [a, b, c] | types · strong | mermaid/dist/config.type.d.ts:225 |
| AntV G2 | native | grep: band | grep · weak | @antv/g2/lib/index.d.ts:93 |