Axis position (top/bottom/left/right)
native
Place the axis on any side
Matrix status native. Verification runtime · strong. ChartKit option: ChartKitChartSpecV1.axes.x.position.
drawn on createRenderer([line]) since PR #17 (main 116d0af)
Source: chartkit:packages/core/src/generated/schema.ts:979
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": {
"position": "top"
}
}
}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.position.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | native | grep: positionscales.x.position | grep · weak | chart.js/dist/types/layout.d.ts:3 |
| Recharts | native | XAxis.orientation | types · strong | @types/react/index.d.ts:3869 |
| Apache ECharts | native | xAxis.position | types · strong | echarts/types/dist/shared.d.ts:2992 |
| Highcharts | native | xAxis.opposite | types · strong | highcharts/highcharts.d.ts:108511 |
| Plotly.js | native | layout.xaxis.side | types · strong | plot-schema.json#layout.layoutAttributes.xaxis.side |
| Nivo | native | Line.axisTop, Line.axisRight | types · strong | @nivo/line/dist/types/types.d.ts:176 |
| Victory | native | VictoryAxis.orientation | types · strong | victory-axis/lib/victory-axis.d.ts:10 |
| visx | native | AxisTop, AxisRight | types · strong | @visx/axis/lib/axis/AxisTop.d.ts:10 |
| ApexCharts | native | yaxis.oppositex axis top: xaxis.position | types · strong | apexcharts/types/apexcharts.d.ts:5036 |
| Tremor (npm) | unknown | — | conflict · unknown | — |
| Observable Plot | native | grep: axis'top' | 'bottom' | 'both' | grep · weak | @observablehq/plot/src/scales.d.ts:4 |
| Vega-Lite | native | grep: orient | grep · weak | 590: "orient" |
| AG Charts | native | grep: position | grep · weak | ag-charts-community/dist/types/src/module-support.d.ts:42 |
| amCharts 5 | native | grep: opposite | grep · weak | @amcharts/amcharts5/.internal/charts/xy/axes/AxisRendererY.d.ts:18 |
| Google Charts | unknown | — | conflict · unknown | — |
| uPlot | native | Options.axes.side | types · strong | uplot/dist/uPlot.d.ts:1066 |
| TradingView Lightweight Charts | native | grep: leftPriceScale | grep · weak | 956: leftPriceScale |
| 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: position | grep · weak | @antv/g2/lib/index.d.ts:2 |