Explicit tick values
native
Specify exact tick positions
Matrix status native. Verification runtime · strong. ChartKit option: ChartKitChartSpecV1.axes.y.ticks.
explicit list; 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": [
20,
50
]
}
}
}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.values.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | partial | grep: afterBuildTickscallback to replace ticks | grep · weak | chart.js/dist/types/index.d.ts:992 |
| Recharts | native | XAxis.ticks | types · strong | recharts/types/cartesian/XAxis.d.ts:108 |
| Apache ECharts | partial | xAxis.axisLabel.intervalvia interval/customValues | types · strong | echarts/types/dist/shared.d.ts:2821 |
| Highcharts | native | xAxis.tickPositions, xAxis.tickPositioner | types · strong | highcharts/highcharts.d.ts:108757 |
| Plotly.js | native | layout.xaxis.tickvals | types · strong | plot-schema.json#layout.layoutAttributes.xaxis.tickvals |
| Nivo | native | grep: tickValues | grep · weak | @nivo/axes/dist/types/types.d.ts:15 |
| Victory | native | VictoryAxis.tickValues | types · strong | victory-core/lib/victory-theme/types.d.ts:60 |
| visx | native | AxisBottom.tickValues | types · strong | @visx/axis/lib/types.d.ts:114 |
| ApexCharts | partial | xaxis.tickPlacement | types · strong | apexcharts/types/apexcharts.d.ts:4963 |
| Tremor (npm) | none | — | absence · absence | — |
| Observable Plot | native | grep: ticksticks: array | grep · weak | @observablehq/plot/src/scales.d.ts:317 |
| Vega-Lite | native | grep: valuesaxis.values | grep · weak | 40: "values", |
| AG Charts | native | grep: values | grep · weak | ag-charts-types/dist/types/src/main.d.ts:15 |
| amCharts 5 | native | grep: AxisRangeDataItemaxis ranges as custom ticks | grep · weak | @amcharts/amcharts5/.internal/charts/xy/series/XYSeries.d.ts:740 |
| Google Charts | native | grep: tickshAxis.ticks | grep · weak | @types/google.visualization/index.d.ts:535 |
| uPlot | native | Options.axes.splits | types · strong | uplot/dist/uPlot.d.ts:1102 |
| TradingView Lightweight Charts | none | — | absence · absence | — |
| 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) | unknown | — | conflict · unknown | — |
| AntV G2 | native | grep: tickMethod | grep · weak | @antv/g2/lib/spec/component.d.ts:30 |