Axis title position / alignment
native
Where the title sits along the axis
Matrix status native. Verification runtime · strong. ChartKit option: ChartKitChartSpecV1.axes.x.titlePosition.
titlePosition is start, center, or end on x, y, and y2. titleRotate sets the y and y2 title angle. 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": {
"titlePosition": "end",
"title": "Quarter"
}
}
}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.title.position.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | native | grep: aligntitle.align | grep · weak | chart.js/dist/types/index.d.ts:1177 |
| Recharts | partial | XAxis.labelLabel position prop | types · strong | recharts/types/util/types.d.ts:843 |
| Apache ECharts | native | xAxis.nameLocation | types · strong | echarts/types/dist/shared.d.ts:2582 |
| Highcharts | native | xAxis.title.align | types · strong | highcharts/highcharts.d.ts:109298 |
| Plotly.js | native | layout.xaxis.title.standoff | types · strong | plot-schema.json#layout.layoutAttributes.xaxis.title.standoff |
| Nivo | native | grep: legendPosition | grep · weak | @nivo/core/index.d.ts:332 |
| Victory | native | VictoryAxis.axisLabelComponent | types · strong | victory-core/lib/victory-theme/types.d.ts:40 |
| visx | native | AxisBottom.labelOffset | types · strong | @visx/axis/lib/types.d.ts:40 |
| ApexCharts | native | xaxis.title.offsetX | types · strong | apexcharts/types/apexcharts.d.ts:4982 |
| Tremor (npm) | none | — | absence · absence | — |
| Observable Plot | native | grep: labelAnchor | grep · weak | @observablehq/plot/src/scales.d.ts:623 |
| Vega-Lite | native | grep: titleAnchor | grep · weak | 1768: "titleAlign" |
| AG Charts | native | grep: spacing | grep · weak | ag-charts-types/dist/types/src/presets/quadrant/quadrantOptions.d.ts:100 |
| amCharts 5 | native | grep: centerX | grep · weak | @amcharts/amcharts5/.internal/plugins/exporting/ExportingCSS.d.ts:6 |
| Google Charts | none | — | absence · absence | — |
| uPlot | native | Options.axes.labelGap | types · strong | uplot/dist/uPlot.d.ts:1090 |
| TradingView Lightweight Charts | none | — | absence · absence | — |
| MUI X Charts | native | grep: labelStyle | grep · weak | @mui/x-charts/constants/index.d.ts:14 |
| Mermaid (chart-ish diagrams only) | none | — | absence · absence | — |
| AntV G2 | native | grep: titlePosition | grep · weak | @antv/g2/lib/theme/create.d.ts:229 |