Features · axis

Explicit tick values

native

Specify exact tick positions

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

explicit list; 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.50Q1Q2
{
  "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": [
        20,
        50
      ]
    }
  }
}

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

LibraryStatusOptionVerificationSource
Chart.jspartialgrep: afterBuildTickscallback to replace ticksgrep · weakchart.js/dist/types/index.d.ts:992
RechartsnativeXAxis.tickstypes · strongrecharts/types/cartesian/XAxis.d.ts:108
Apache EChartspartialxAxis.axisLabel.intervalvia interval/customValuestypes · strongecharts/types/dist/shared.d.ts:2821
HighchartsnativexAxis.tickPositions, xAxis.tickPositionertypes · stronghighcharts/highcharts.d.ts:108757
Plotly.jsnativelayout.xaxis.tickvalstypes · strongplot-schema.json#layout.layoutAttributes.xaxis.tickvals
Nivonativegrep: tickValuesgrep · weak@nivo/axes/dist/types/types.d.ts:15
VictorynativeVictoryAxis.tickValuestypes · strongvictory-core/lib/victory-theme/types.d.ts:60
visxnativeAxisBottom.tickValuestypes · strong@visx/axis/lib/types.d.ts:114
ApexChartspartialxaxis.tickPlacementtypes · strongapexcharts/types/apexcharts.d.ts:4963
Tremor (npm)none—absence · absence—
Observable Plotnativegrep: ticksticks: arraygrep · weak@observablehq/plot/src/scales.d.ts:317
Vega-Litenativegrep: valuesaxis.valuesgrep · weak40: "values",
AG Chartsnativegrep: valuesgrep · weakag-charts-types/dist/types/src/main.d.ts:15
amCharts 5nativegrep: AxisRangeDataItemaxis ranges as custom ticksgrep · weak@amcharts/amcharts5/.internal/charts/xy/series/XYSeries.d.ts:740
Google Chartsnativegrep: tickshAxis.ticksgrep · weak@types/google.visualization/index.d.ts:535
uPlotnativeOptions.axes.splitstypes · stronguplot/dist/uPlot.d.ts:1102
TradingView Lightweight Chartsnone—absence · absence—
MUI X ChartsnativeLineChart.xAxistypes · strong@mui/x-charts/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.mts:25
Mermaid (chart-ish diagrams only)unknown—conflict · unknown—
AntV G2nativegrep: tickMethodgrep · weak@antv/g2/lib/spec/component.d.ts:30