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.
{
"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.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | partial | grep: CategoryScaleoffset:false | grep · weak | chart.js/dist/types/index.d.ts:3295 |
| Recharts | native | XAxis.scale=point | types · strong | recharts/types/cartesian/XAxis.d.ts:84 |
| Apache ECharts | native | xAxis.boundaryGapcategory with boundaryGap false | types · strong | echarts/types/dist/shared.d.ts:2679 |
| Highcharts | partial | xAxis.categories | types · strong | highcharts/highcharts.d.ts:108166 |
| Plotly.js | partial | layout.xaxis.type=category | types · strong | plot-schema.json#layout.layoutAttributes.xaxis.type |
| Nivo | native | grep: point | grep · weak | @nivo/tree/node_modules/@types/d3-hierarchy/index.d.ts:265 |
| Victory | unknown | — | conflict · unknown | — |
| visx | native | grep: scalePoint | grep · weak | @visx/scale/lib/index.d.ts:2 |
| ApexCharts | unknown | — | conflict · unknown | — |
| Tremor (npm) | none | — | absence · absence | — |
| Observable Plot | native | grep: point | grep · weak | @observablehq/plot/src/symbol.d.ts:12 |
| Vega-Lite | native | grep: point | grep · weak | 350: "description" |
| AG Charts | partial | grep: category | grep · weak | ag-charts-types/dist/types/src/main-scene.d.ts:13 |
| amCharts 5 | partial | CategoryAxis | types · strong | @amcharts/amcharts5/.internal/charts/xy/axes/CategoryAxis.d.ts:108 |
| Google Charts | unknown | — | conflict · unknown | — |
| uPlot | unknown | — | conflict · unknown | — |
| TradingView Lightweight Charts | unknown | — | conflict · unknown | — |
| MUI X Charts | native | LineChart.xAxis.scaleType=point | types · strong | @mui/x-charts/models/axis.d.mts:365 |
| Mermaid (chart-ish diagrams only) | unknown | — | conflict · unknown | — |
| AntV G2 | native | grep: point | grep · weak | @antv/g2/lib/index.d.ts:68 |