Show / hide axis
native
Toggle an axis entirely
Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.axes.x.
axes.x:false hides
Source: chartkit:packages/core/src/generated/schema.ts:936
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": {
"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.show.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | native | grep: displayscales.x.display | grep · weak | chart.js/dist/types/index.d.ts:1103 |
| Recharts | native | XAxis.hide | types · strong | recharts/types/util/types.d.ts:744 |
| Apache ECharts | native | xAxis.show | types · strong | echarts/types/dist/shared.d.ts:2573 |
| Highcharts | native | xAxis.visible | types · strong | highcharts/highcharts.d.ts:108812 |
| Plotly.js | native | layout.xaxis.visible | types · strong | plot-schema.json#layout.layoutAttributes.xaxis.visible |
| Nivo | native | Line.axisBottomnull hides | types · strong | @nivo/line/dist/types/types.d.ts:178 |
| Victory | native | VictoryAxisomit or style | types · strong | victory-axis/lib/victory-axis.d.ts:239 |
| visx | native | AxisBottomcompose or omit | types · strong | @visx/axis/lib/axis/AxisBottom.d.ts:9 |
| ApexCharts | native | xaxis.labels.show, yaxis.show | types · strong | apexcharts/types/apexcharts.d.ts:4908 |
| Tremor (npm) | native | LineChart.showXAxis, LineChart.showYAxis | types · strong | @tremor/react/dist/index.d.ts:62 |
| Observable Plot | native | grep: axisaxis: null | grep · weak | @observablehq/plot/src/scales.d.ts:4 |
| Vega-Lite | native | grep: axisaxis: null | grep · weak | 1047: "Axis" |
| AG Charts | unknown | — | unverified · unknown | — |
| amCharts 5 | native | grep: visible | grep · weak | @amcharts/amcharts5/.internal/plugins/exporting/Annotator.d.ts:97 |
| Google Charts | native | grep: textPositionhAxis.textPosition:'none' | grep · weak | @types/google.visualization/index.d.ts:533 |
| uPlot | native | Options.axes.show | types · strong | uplot/dist/uPlot.d.ts:1060 |
| TradingView Lightweight Charts | native | grep: visiblepriceScale/timeScale visible | grep · weak | 138: * Use the last visible data of the chart viewport. |
| MUI X Charts | native | LineChart.xAxisposition:'none' | types · strong | @mui/x-charts/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.mts:25 |
| Mermaid (chart-ish diagrams only) | native | grep: showAxisLinexyChart.xAxis.showLabel etc. | grep · weak | mermaid/dist/themes/theme-redux.d.ts:149 |
| AntV G2 | native | grep: axisaxis: false | grep · weak | @antv/g2/lib/index.d.ts:110 |