Features · axis

Axis title position / alignment

native

Where the title sits along the axis

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

titlePosition is start, center, or end on x, y, and y2. titleRotate sets the y and y2 title angle. 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.40455055Q1Q2Quarter
{
  "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": {
      "titlePosition": "end",
      "title": "Quarter"
    }
  }
}

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

LibraryStatusOptionVerificationSource
Chart.jsnativegrep: aligntitle.aligngrep · weakchart.js/dist/types/index.d.ts:1177
RechartspartialXAxis.labelLabel position proptypes · strongrecharts/types/util/types.d.ts:843
Apache EChartsnativexAxis.nameLocationtypes · strongecharts/types/dist/shared.d.ts:2582
HighchartsnativexAxis.title.aligntypes · stronghighcharts/highcharts.d.ts:109298
Plotly.jsnativelayout.xaxis.title.standofftypes · strongplot-schema.json#layout.layoutAttributes.xaxis.title.standoff
Nivonativegrep: legendPositiongrep · weak@nivo/core/index.d.ts:332
VictorynativeVictoryAxis.axisLabelComponenttypes · strongvictory-core/lib/victory-theme/types.d.ts:40
visxnativeAxisBottom.labelOffsettypes · strong@visx/axis/lib/types.d.ts:40
ApexChartsnativexaxis.title.offsetXtypes · strongapexcharts/types/apexcharts.d.ts:4982
Tremor (npm)none—absence · absence—
Observable Plotnativegrep: labelAnchorgrep · weak@observablehq/plot/src/scales.d.ts:623
Vega-Litenativegrep: titleAnchorgrep · weak1768: "titleAlign"
AG Chartsnativegrep: spacinggrep · weakag-charts-types/dist/types/src/presets/quadrant/quadrantOptions.d.ts:100
amCharts 5nativegrep: centerXgrep · weak@amcharts/amcharts5/.internal/plugins/exporting/ExportingCSS.d.ts:6
Google Chartsnone—absence · absence—
uPlotnativeOptions.axes.labelGaptypes · stronguplot/dist/uPlot.d.ts:1090
TradingView Lightweight Chartsnone—absence · absence—
MUI X Chartsnativegrep: labelStylegrep · weak@mui/x-charts/constants/index.d.ts:14
Mermaid (chart-ish diagrams only)none—absence · absence—
AntV G2nativegrep: titlePositiongrep · weak@antv/g2/lib/theme/create.d.ts:229