Tick label overlap avoidance
native
Auto-skip, stagger or hide overlapping labels
Matrix status native. Verification runtime · strong. ChartKit option: ChartKitChartSpecV1.axes.x.autoSkip.
autoSkip true drops crowded category labels instead of tilting them. false draws every label. Numeric ticks skip on collision unless it is false. Drawn on createRenderer([line]).
Source: packages/core/src/generated/schema.ts:1044
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": {
"x": {
"autoSkip": false
}
}
}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.autoskip.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | native | grep: autoSkip | grep · weak | chart.js/dist/types/index.d.ts:3127 |
| Recharts | native | XAxis.interval, XAxis.minTickGap | types · strong | recharts/types/cartesian/XAxis.d.ts:125 |
| Apache ECharts | native | xAxis.axisLabel.hideOverlap | types · strong | echarts/types/dist/shared.d.ts:2814 |
| Highcharts | native | xAxis.labels.staggerLines, xAxis.labels.autoRotation | types · strong | highcharts/highcharts.d.ts:108041 |
| Plotly.js | partial | layout.xaxis.automargin | types · strong | plot-schema.json#layout.layoutAttributes.xaxis.automargin |
| Nivo | none | — | absence · absence | — |
| Victory | native | VictoryAxis.fixLabelOverlap | types · strong | victory-axis/lib/victory-axis.d.ts:7 |
| visx | none | — | absence · absence | — |
| ApexCharts | native | xaxis.labels.hideOverlappingLabels | types · strong | apexcharts/types/apexcharts.d.ts:4911 |
| Tremor (npm) | unknown | — | unverified · unknown | — |
| Observable Plot | native | grep: tickSpacing | grep · weak | @observablehq/plot/src/scales.d.ts:572 |
| Vega-Lite | native | grep: labelOverlap | grep · weak | 1474: "labelOverlap" |
| AG Charts | native | grep: avoidCollisions | grep · weak | ag-charts-types/dist/types/src/presets/gauge/linearGaugeOptions.d.ts:70 |
| amCharts 5 | native | grep: minGridDistance | grep · weak | @amcharts/amcharts5/examples/xy-stacked-step/config.json:83 |
| Google Charts | native | grep: showTextEvery | grep · weak | @types/google.visualization/index.d.ts:539 |
| uPlot | partial | Options.axes.space | types · strong | uplot/dist/uPlot.d.ts:1096 |
| TradingView Lightweight Charts | partial | grep: tickMarkMaxCharacterLength | grep · weak | 1464: tickMarkMaxCharacterLength? |
| MUI X Charts | native | grep: tickLabelInterval | grep · weak | @mui/x-charts/ChartsYAxis/useAxisTicksProps.d.ts:24 |
| Mermaid (chart-ish diagrams only) | none | — | absence · absence | — |
| AntV G2 | unknown | grep: labelAutoHide | unverified · unknown | — |