Features · axis

Tick marks size / visibility

native

Show/hide tick marks and set their length

Matrix status native. Verification runtime · strong. ChartKit option: ChartKitChartSpecV1.axes.x.tickMarks.

tickMarks is inside, outside, or none. tickLength sets the length. 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": {
      "tickMarks": "outside"
    }
  }
}

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.ticks.marks.md.

LibraryStatusOptionVerificationSource
Chart.jsnativegrep: tickLengthgrep · weakchart.js/dist/types/index.d.ts:3039
RechartsnativeXAxis.tickSize, XAxis.tickLinetypes · strongrecharts/types/util/types.d.ts:789
Apache EChartsnativexAxis.axisTick.show, xAxis.axisTick.lengthtypes · strongecharts/types/dist/shared.d.ts:2762
HighchartsnativexAxis.tickLength, xAxis.tickWidthtypes · stronghighcharts/highcharts.d.ts:108716
Plotly.jsnativelayout.xaxis.ticklen, layout.xaxis.tickstypes · strongplot-schema.json#layout.layoutAttributes.xaxis.ticklen
Nivonativegrep: tickSizegrep · weak@nivo/legends/dist/types/types.d.ts:101
VictorynativeVictoryAxis.styleticks styletypes · strongvictory-core/lib/victory-theme/types.d.ts:46
visxnativeAxisBottom.tickLength, AxisBottom.hideTickstypes · strong@visx/axis/lib/types.d.ts:71
ApexChartsnativexaxis.axisTicks.show, xaxis.axisTicks.heighttypes · strongapexcharts/types/apexcharts.d.ts:4956
Tremor (npm)none—absence · absence—
Observable Plotnativegrep: tickSizegrep · weak@observablehq/plot/src/scales.d.ts:563
Vega-Litenativegrep: tickSizegrep · weak1064: "description"
AG Chartsnativegrep: tickgrep · weakag-charts-types/dist/types/src/main.d.ts:59
amCharts 5nativegrep: minorGridEnabledgrep · weak@amcharts/amcharts5/examples/xy-stacked-step/config.json:71
Google Chartsnone—absence · absence—
uPlotnativeOptions.axes.ticks.sizetypes · stronguplot/dist/uPlot.d.ts:1054
TradingView Lightweight Chartsnone—absence · absence—
MUI X Chartsnativegrep: disableTicksgrep · weak@mui/x-charts/ChartsYAxis/utilities.d.ts:7
Mermaid (chart-ish diagrams only)nativegrep: showTickgrep · weakmermaid/dist/config.type.d.ts:1125
AntV G2nativegrep: tickLengthgrep · weak@antv/g2/lib/component/axis.d.ts:16