Features · axis

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.

Units rose in Q2.Units rose in Q2.40455055Q1Q2
{
  "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.

LibraryStatusOptionVerificationSource
Chart.jsnativegrep: borderscales.x.bordergrep · weakchart.js/dist/types/index.d.ts:1632
RechartsnativeXAxis.axisLinetypes · strongrecharts/types/util/types.d.ts:776
Apache EChartsnativexAxis.axisLine.show, xAxis.axisLine.lineStyletypes · strongecharts/types/dist/shared.d.ts:2752
HighchartsnativexAxis.lineWidth, xAxis.lineColortypes · stronghighcharts/highcharts.d.ts:108317
Plotly.jsnativelayout.xaxis.showline, layout.xaxis.linecolortypes · strongplot-schema.json#layout.layoutAttributes.xaxis.showline
Nivonativegrep: domaintheme.axis.domain.linegrep · weak@nivo/geo/index.d.ts:104
VictorynativeVictoryAxis.styletypes · strongvictory-core/lib/victory-theme/types.d.ts:46
visxnativeAxisBottom.hideAxisLine, AxisBottom.stroketypes · strong@visx/axis/lib/types.d.ts:30
ApexChartsnativexaxis.axisBorder.show, xaxis.axisBorder.colortypes · strongapexcharts/types/apexcharts.d.ts:4948
Tremor (npm)none—absence · absence—
Observable Plotnativegrep: frameaxis line via frame/rulegrep · weak@observablehq/plot/src/scales.d.ts:299
Vega-Litenativegrep: domaingrep · weak524: "description"
AG Chartsnativegrep: linegrep · weakag-charts-types/dist/types/src/main.d.ts:16
amCharts 5nativegrep: strokeOpacitygrep · weak@amcharts/amcharts5/.internal/charts/xy/series/ColumnSeries.d.ts:55
Google Chartsnativegrep: baselineColorgrep · weak@types/google.visualization/index.d.ts:527
uPlotnativeOptions.axes.bordertypes · stronguplot/dist/uPlot.d.ts:1126
TradingView Lightweight Chartsnativegrep: borderVisiblegrep · weak513: crosshairMarkerBorderColor
MUI X Chartsnativegrep: disableLinegrep · weak@mui/x-charts/ChartsYAxis/utilities.d.ts:6
Mermaid (chart-ish diagrams only)nativegrep: showAxisLinegrep · weakmermaid/dist/config.type.d.ts:1137
AntV G2nativegrep: linegrep · weak@antv/g2/lib/index.d.ts:12