Features · scale

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.

Units rose in Q2.Units rose in Q2.40455055Q1Q2
{
  "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.

LibraryStatusOptionVerificationSource
Chart.jsnativegrep: CategoryScalegrep · weakchart.js/dist/types/index.d.ts:3295
RechartsnativeXAxis.type=categorytypes · strong@types/react/index.d.ts:3709
Apache EChartsnativexAxis.type=categorytypes · strongecharts/types/dist/shared.d.ts:2729
HighchartsnativexAxis.type=category, xAxis.categoriestypes · stronghighcharts/highcharts.d.ts:108788
Plotly.jsnativelayout.xaxis.type=categorytypes · strongplot-schema.json#layout.layoutAttributes.xaxis.type
NivonativeBar.indexScaletypes · strong@nivo/bar/dist/types/types.d.ts:146
VictorynativeVictoryAxis.tickValuestypes · strongvictory-core/lib/victory-theme/types.d.ts:60
visxnativegrep: scaleBandgrep · weak@visx/shape/lib/shapes/BarGroupHorizontal.d.ts:3
ApexChartsnativexaxis.categoriestypes · strongapexcharts/types/apexcharts.d.ts:4902
Tremor (npm)nativeLineChart.indextypes · strong@tremor/react/dist/index.d.ts:58
Observable Plotnativegrep: bandgrep · weak@observablehq/plot/src/scales.d.ts:188
Vega-Litenativegrep: bandgrep · weak683: "description"
AG Chartsnativegrep: categorygrep · weakag-charts-types/dist/types/src/main-scene.d.ts:13
amCharts 5nativeCategoryAxistypes · strong@amcharts/amcharts5/.internal/charts/xy/axes/CategoryAxis.d.ts:108
Google Chartsnativegrep: stringstring domain columngrep · weak@types/google.visualization/index.d.ts:3
uPlotpartialgrep: valuescategory labels via axis values fngrep · weak82: /** sets the legend to the values of the specified idx */
TradingView Lightweight Chartsnone—absence · absence—
MUI X ChartsnativeLineChart.xAxis.scaleType=bandtypes · strong@mui/x-charts/models/axis.d.mts:365
Mermaid (chart-ish diagrams only)nativeMermaidConfig.xyChartx-axis [a, b, c]types · strongmermaid/dist/config.type.d.ts:225
AntV G2nativegrep: bandgrep · weak@antv/g2/lib/index.d.ts:93