Tick label rotation
native
Rotate tick labels by an angle
Matrix status native. Verification runtime · strong. ChartKit option: ChartKitChartSpecV1.axes.x.rotate.
degrees; auto -40 when crowded labels fit; drawn on createRenderer([line]) since PR #17 (main 116d0af)
Source: chartkit:packages/core/src/generated/schema.ts:983
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": {
"rotate": -40
}
}
}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.rotate.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | native | grep: maxRotationticks.minRotation / maxRotation | grep · weak | chart.js/dist/types/index.d.ts:3146 |
| Recharts | native | XAxis.angle | types · strong | recharts/types/util/types.d.ts:738 |
| Apache ECharts | native | xAxis.axisLabel.rotate | types · strong | echarts/types/dist/shared.d.ts:2803 |
| Highcharts | native | xAxis.labels.rotation | types · strong | highcharts/highcharts.d.ts:108025 |
| Plotly.js | native | layout.xaxis.tickangle | types · strong | plot-schema.json#layout.layoutAttributes.xaxis.tickangle |
| Nivo | native | grep: tickRotation | grep · weak | @nivo/polar-axes/dist/types/types.d.ts:28 |
| Victory | native | VictoryAxis.tickLabelComponentVictoryLabel angle | types · strong | victory-core/lib/victory-theme/types.d.ts:56 |
| visx | native | AxisBottom.tickLabelPropsangle via props | types · strong | @visx/axis/lib/types.d.ts:69 |
| ApexCharts | native | xaxis.labels.rotate | types · strong | apexcharts/types/apexcharts.d.ts:4909 |
| Tremor (npm) | native | LineChart.rotateLabelX | types · strong | @tremor/react/dist/index.d.ts:81 |
| Observable Plot | native | grep: tickRotate | grep · weak | @observablehq/plot/src/scales.d.ts:577 |
| Vega-Lite | native | grep: labelAngle | grep · weak | 1283: "labelAngle" |
| AG Charts | native | grep: rotation | grep · weak | ag-charts-types/dist/types/src/presets/gauge/radialGaugeOptions.d.ts:65 |
| amCharts 5 | native | grep: rotation | grep · weak | @amcharts/amcharts5/.internal/core/util/Matrix.d.ts:41 |
| Google Charts | native | grep: slantedTextAngle | grep · weak | @types/google.visualization/index.d.ts:540 |
| uPlot | native | Options.axes.rotate | types · strong | uplot/dist/uPlot.d.ts:1111 |
| TradingView Lightweight Charts | none | — | absence · absence | — |
| MUI X Charts | native | LineChart.xAxisangle in tickLabelStyle | 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: labelTransform | grep · weak | @antv/g2/lib/index.d.ts:165 |