Tick count / interval
native
Approximate or fixed number of ticks
Matrix status native. Verification runtime · strong. ChartKit option: ChartKitChartSpecV1.axes.y.ticks.
count 0-50; drawn on createRenderer([line]) since PR #17 (main 116d0af)
Source: chartkit:packages/core/src/generated/schema.ts:1019
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": "quarter",
"y": "units"
},
"a11y": {
"alt": "Units rose in Q2."
},
"size": {
"width": 640,
"height": 260
},
"axes": {
"y": {
"ticks": 3
}
}
}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: axis.ticks.count.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | native | grep: maxTicksLimit | grep · weak | chart.js/dist/types/index.d.ts:3199 |
| Recharts | native | YAxis.tickCount, XAxis.interval | types · strong | recharts/types/util/types.d.ts:767 |
| Apache ECharts | native | yAxis.splitNumber, yAxis.interval | types · strong | echarts/types/dist/shared.d.ts:2683 |
| Highcharts | native | yAxis.tickAmount, yAxis.tickInterval | types · strong | highcharts/highcharts.d.ts:110637 |
| Plotly.js | native | layout.yaxis.nticks, layout.yaxis.dtick | types · strong | plot-schema.json#layout.layoutAttributes.yaxis.nticks |
| Nivo | native | grep: tickValuesaxisLeft.tickValues number or array | grep · weak | @nivo/axes/dist/types/types.d.ts:15 |
| Victory | native | VictoryAxis.tickCount | types · strong | victory-core/lib/victory-theme/types.d.ts:55 |
| visx | native | AxisLeft.numTicks | types · strong | @visx/axis/lib/types.d.ts:44 |
| ApexCharts | native | yaxis.tickAmount, xaxis.tickAmount | types · strong | apexcharts/types/apexcharts.d.ts:5040 |
| Tremor (npm) | native | LineChart.tickGap | types · strong | @tremor/react/dist/index.d.ts:86 |
| Observable Plot | native | grep: ticksticks: number | interval | grep · weak | @observablehq/plot/src/scales.d.ts:317 |
| Vega-Lite | native | grep: tickCount | grep · weak | 1630: "tickCount" |
| AG Charts | native | grep: intervalaxes[].interval.step / minSpacing | grep · weak | ag-charts-types/dist/types/src/presets/sparkline/sparklineAxisOptions.d.ts:13 |
| amCharts 5 | native | grep: minGridDistance | grep · weak | @amcharts/amcharts5/examples/xy-stacked-step/config.json:83 |
| Google Charts | native | grep: gridlinesgridlines.count | grep · weak | @types/google.visualization/index.d.ts:119 |
| uPlot | native | Options.axes.space, Options.axes.incrs | types · strong | uplot/dist/uPlot.d.ts:1096 |
| TradingView Lightweight Charts | native | grep: tickMarkMaxCharacterLength | grep · weak | 1373: minBarSpacing |
| MUI X Charts | native | LineChart.xAxis | types · strong | @mui/x-charts/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.mts:25 |
| Mermaid (chart-ish diagrams only) | none | — | absence · absence | — |
| AntV G2 | native | grep: tickCount | grep · weak | @antv/g2/lib/component/axis.d.ts:14 |