Features · axis

Tick label formatting

native

Number/date format or formatter function for tick labels

Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.axes.y.format.

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

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": {
    "y": {
      "format": "compact"
    }
  }
}

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

LibraryStatusOptionVerificationSource
Chart.jsnativegrep: callbackticks.callbackgrep · weakchart.js/dist/types/index.d.ts:1216
RechartsnativeYAxis.tickFormattertypes · strongrecharts/types/util/types.d.ts:793
Apache EChartsnativeyAxis.axisLabel.formattertypes · strongecharts/types/dist/shared.d.ts:2820
HighchartsnativeyAxis.labels.format, yAxis.labels.formattertypes · stronghighcharts/highcharts.d.ts:109837
Plotly.jsnativelayout.yaxis.tickformat, layout.yaxis.tickprefixtypes · strongplot-schema.json#layout.layoutAttributes.yaxis.tickformat
Nivonativegrep: formataxisLeft.formatgrep · weak@nivo/legends/dist/types/types.d.ts:3
VictorynativeVictoryAxis.tickFormattypes · strongvictory-core/lib/victory-theme/types.d.ts:57
visxnativeAxisLeft.tickFormattypes · strong@visx/axis/lib/types.d.ts:67
ApexChartsnativeyaxis.labels.formattertypes · strongapexcharts/types/apexcharts.d.ts:5071
Tremor (npm)nativeLineChart.valueFormattertypes · strong@tremor/react/dist/index.d.ts:60
Observable Plotnativegrep: tickFormatgrep · weak@observablehq/plot/src/scales.d.ts:591
Vega-Litenativegrep: formatgrep · weak84: "description"
AG Chartsnativegrep: formattergrep · weakag-charts-enterprise/dist/types/src/license/licenseManager.d.ts:2
amCharts 5nativegrep: numberFormatgrep · weak@amcharts/amcharts5/.internal/plugins/json/Classes.d.ts:159
Google Chartsnativegrep: formatvAxis.formatgrep · weak@types/google.visualization/index.d.ts:162
uPlotnativeOptions.axes.valuesvalues: (u, splits) => labelstypes · stronguplot/dist/uPlot.d.ts:1108
TradingView Lightweight Chartsnativegrep: priceFormattergrep · weak2211:export interface IPriceFormatter {
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: labelFormattergrep · weak@antv/g2/lib/component/legendCategory.d.ts:5