Features · axis

Axis position (top/bottom/left/right)

native

Place the axis on any side

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

drawn on createRenderer([line]) since PR #17 (main 116d0af)

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

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": {
      "position": "top"
    }
  }
}

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

LibraryStatusOptionVerificationSource
Chart.jsnativegrep: positionscales.x.positiongrep · weakchart.js/dist/types/layout.d.ts:3
RechartsnativeXAxis.orientationtypes · strong@types/react/index.d.ts:3869
Apache EChartsnativexAxis.positiontypes · strongecharts/types/dist/shared.d.ts:2992
HighchartsnativexAxis.oppositetypes · stronghighcharts/highcharts.d.ts:108511
Plotly.jsnativelayout.xaxis.sidetypes · strongplot-schema.json#layout.layoutAttributes.xaxis.side
NivonativeLine.axisTop, Line.axisRighttypes · strong@nivo/line/dist/types/types.d.ts:176
VictorynativeVictoryAxis.orientationtypes · strongvictory-axis/lib/victory-axis.d.ts:10
visxnativeAxisTop, AxisRighttypes · strong@visx/axis/lib/axis/AxisTop.d.ts:10
ApexChartsnativeyaxis.oppositex axis top: xaxis.positiontypes · strongapexcharts/types/apexcharts.d.ts:5036
Tremor (npm)unknown—conflict · unknown—
Observable Plotnativegrep: axis'top' | 'bottom' | 'both'grep · weak@observablehq/plot/src/scales.d.ts:4
Vega-Litenativegrep: orientgrep · weak590: "orient"
AG Chartsnativegrep: positiongrep · weakag-charts-community/dist/types/src/module-support.d.ts:42
amCharts 5nativegrep: oppositegrep · weak@amcharts/amcharts5/.internal/charts/xy/axes/AxisRendererY.d.ts:18
Google Chartsunknown—conflict · unknown—
uPlotnativeOptions.axes.sidetypes · stronguplot/dist/uPlot.d.ts:1066
TradingView Lightweight Chartsnativegrep: leftPriceScalegrep · weak956: leftPriceScale
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: positiongrep · weak@antv/g2/lib/index.d.ts:2