Features · scale

Point / ordinal scale

native

Discrete positions without bands

Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.encoding.x.scale.type=point.

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": "point"
      }
    },
    "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.point.md.

LibraryStatusOptionVerificationSource
Chart.jspartialgrep: CategoryScaleoffset:falsegrep · weakchart.js/dist/types/index.d.ts:3295
RechartsnativeXAxis.scale=pointtypes · strongrecharts/types/cartesian/XAxis.d.ts:84
Apache EChartsnativexAxis.boundaryGapcategory with boundaryGap falsetypes · strongecharts/types/dist/shared.d.ts:2679
HighchartspartialxAxis.categoriestypes · stronghighcharts/highcharts.d.ts:108166
Plotly.jspartiallayout.xaxis.type=categorytypes · strongplot-schema.json#layout.layoutAttributes.xaxis.type
Nivonativegrep: pointgrep · weak@nivo/tree/node_modules/@types/d3-hierarchy/index.d.ts:265
Victoryunknown—conflict · unknown—
visxnativegrep: scalePointgrep · weak@visx/scale/lib/index.d.ts:2
ApexChartsunknown—conflict · unknown—
Tremor (npm)none—absence · absence—
Observable Plotnativegrep: pointgrep · weak@observablehq/plot/src/symbol.d.ts:12
Vega-Litenativegrep: pointgrep · weak350: "description"
AG Chartspartialgrep: categorygrep · weakag-charts-types/dist/types/src/main-scene.d.ts:13
amCharts 5partialCategoryAxistypes · strong@amcharts/amcharts5/.internal/charts/xy/axes/CategoryAxis.d.ts:108
Google Chartsunknown—conflict · unknown—
uPlotunknown—conflict · unknown—
TradingView Lightweight Chartsunknown—conflict · unknown—
MUI X ChartsnativeLineChart.xAxis.scaleType=pointtypes · strong@mui/x-charts/models/axis.d.mts:365
Mermaid (chart-ish diagrams only)unknown—conflict · unknown—
AntV G2nativegrep: pointgrep · weak@antv/g2/lib/index.d.ts:68