Features · axis

Tick count / interval

native

Approximate or fixed number of ticks

Matrix status native. Verification runtime · strong. ChartKit option: ChartKitChartSpecV1.axes.y.ticks.

count 0-50; drawn on createRenderer([line]) since PR #17 (main 116d0af)

Source: chartkit:packages/core/src/generated/schema.ts:1019

ChartKit spec

Passed validate() during npm run matrix:refresh. The SVG is the server render.

Units rose in Q2.Units rose in Q2.4050Q1Q2
{
  "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": {
    "y": {
      "ticks": 3
    }
  }
}

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.count.md.

LibraryStatusOptionVerificationSource
Chart.jsnativegrep: maxTicksLimitgrep · weakchart.js/dist/types/index.d.ts:3199
RechartsnativeYAxis.tickCount, XAxis.intervaltypes · strongrecharts/types/util/types.d.ts:767
Apache EChartsnativeyAxis.splitNumber, yAxis.intervaltypes · strongecharts/types/dist/shared.d.ts:2683
HighchartsnativeyAxis.tickAmount, yAxis.tickIntervaltypes · stronghighcharts/highcharts.d.ts:110637
Plotly.jsnativelayout.yaxis.nticks, layout.yaxis.dticktypes · strongplot-schema.json#layout.layoutAttributes.yaxis.nticks
Nivonativegrep: tickValuesaxisLeft.tickValues number or arraygrep · weak@nivo/axes/dist/types/types.d.ts:15
VictorynativeVictoryAxis.tickCounttypes · strongvictory-core/lib/victory-theme/types.d.ts:55
visxnativeAxisLeft.numTickstypes · strong@visx/axis/lib/types.d.ts:44
ApexChartsnativeyaxis.tickAmount, xaxis.tickAmounttypes · strongapexcharts/types/apexcharts.d.ts:5040
Tremor (npm)nativeLineChart.tickGaptypes · strong@tremor/react/dist/index.d.ts:86
Observable Plotnativegrep: ticksticks: number | intervalgrep · weak@observablehq/plot/src/scales.d.ts:317
Vega-Litenativegrep: tickCountgrep · weak1630: "tickCount"
AG Chartsnativegrep: intervalaxes[].interval.step / minSpacinggrep · weakag-charts-types/dist/types/src/presets/sparkline/sparklineAxisOptions.d.ts:13
amCharts 5nativegrep: minGridDistancegrep · weak@amcharts/amcharts5/examples/xy-stacked-step/config.json:83
Google Chartsnativegrep: gridlinesgridlines.countgrep · weak@types/google.visualization/index.d.ts:119
uPlotnativeOptions.axes.space, Options.axes.incrstypes · stronguplot/dist/uPlot.d.ts:1096
TradingView Lightweight Chartsnativegrep: tickMarkMaxCharacterLengthgrep · weak1373: minBarSpacing
MUI X ChartsnativeLineChart.xAxistypes · strong@mui/x-charts/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.mts:25
Mermaid (chart-ish diagrams only)none—absence · absence—
AntV G2nativegrep: tickCountgrep · weak@antv/g2/lib/component/axis.d.ts:14