Axis line styling
native
Visibility, colour and width of the axis baseline
Matrix status native. Verification runtime · strong. ChartKit option: ChartKitChartSpecV1.axes.x.line.
The baseline is off until line is true or { show, color, width, dash }. Dash is solid, dashed, or dotted. 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": {
"line": {
"show": true,
"dash": "dashed",
"width": 1.5
}
}
}
}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.line.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | native | grep: borderscales.x.border | grep · weak | chart.js/dist/types/index.d.ts:1632 |
| Recharts | native | XAxis.axisLine | types · strong | recharts/types/util/types.d.ts:776 |
| Apache ECharts | native | xAxis.axisLine.show, xAxis.axisLine.lineStyle | types · strong | echarts/types/dist/shared.d.ts:2752 |
| Highcharts | native | xAxis.lineWidth, xAxis.lineColor | types · strong | highcharts/highcharts.d.ts:108317 |
| Plotly.js | native | layout.xaxis.showline, layout.xaxis.linecolor | types · strong | plot-schema.json#layout.layoutAttributes.xaxis.showline |
| Nivo | native | grep: domaintheme.axis.domain.line | grep · weak | @nivo/geo/index.d.ts:104 |
| Victory | native | VictoryAxis.style | types · strong | victory-core/lib/victory-theme/types.d.ts:46 |
| visx | native | AxisBottom.hideAxisLine, AxisBottom.stroke | types · strong | @visx/axis/lib/types.d.ts:30 |
| ApexCharts | native | xaxis.axisBorder.show, xaxis.axisBorder.color | types · strong | apexcharts/types/apexcharts.d.ts:4948 |
| Tremor (npm) | none | — | absence · absence | — |
| Observable Plot | native | grep: frameaxis line via frame/rule | grep · weak | @observablehq/plot/src/scales.d.ts:299 |
| Vega-Lite | native | grep: domain | grep · weak | 524: "description" |
| AG Charts | native | grep: line | grep · weak | ag-charts-types/dist/types/src/main.d.ts:16 |
| amCharts 5 | native | grep: strokeOpacity | grep · weak | @amcharts/amcharts5/.internal/charts/xy/series/ColumnSeries.d.ts:55 |
| Google Charts | native | grep: baselineColor | grep · weak | @types/google.visualization/index.d.ts:527 |
| uPlot | native | Options.axes.border | types · strong | uplot/dist/uPlot.d.ts:1126 |
| TradingView Lightweight Charts | native | grep: borderVisible | grep · weak | 513: crosshairMarkerBorderColor |
| MUI X Charts | native | grep: disableLine | grep · weak | @mui/x-charts/ChartsYAxis/utilities.d.ts:6 |
| Mermaid (chart-ish diagrams only) | native | grep: showAxisLine | grep · weak | mermaid/dist/config.type.d.ts:1137 |
| AntV G2 | native | grep: line | grep · weak | @antv/g2/lib/index.d.ts:12 |