Features · scale

Multiple / dual y axes

native

Two or more value axes

Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.encoding.y.axis=y2.

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

ChartKit spec

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

Units rose in Q2.Units rose in Q2.0140455055Q1Q2Other
{
  "version": "1",
  "type": "line",
  "data": [
    {
      "quarter": "Q1",
      "units": 40
    },
    {
      "quarter": "Q2",
      "units": 55
    }
  ],
  "encoding": {
    "x": "quarter",
    "y": {
      "field": "units",
      "axis": "y2"
    }
  },
  "a11y": {
    "alt": "Units rose in Q2."
  },
  "size": {
    "width": 640,
    "height": 260
  },
  "axes": {
    "y2": {
      "title": "Other"
    }
  }
}

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: scale.multi.md.

LibraryStatusOptionVerificationSource
Chart.jsnativegrep: yAxisIDdataset.yAxisID + extra scalesgrep · weakchart.js/dist/types/index.d.ts:108
RechartsnativeYAxis.yAxisId, Line.yAxisIdtypes · strongrecharts/types/cartesian/YAxis.d.ts:76
Apache EChartsnativeseries.yAxisIndextypes · strongecharts/types/dist/shared.d.ts:8382
Highchartsnativeseries.yAxis, yAxis.oppositetypes · stronghighcharts/highcharts.d.ts:100917
Plotly.jsnativelayout.yaxis.overlaying, layout.yaxis.sidetypes · strongplot-schema.json#layout.layoutAttributes.yaxis.overlaying
Nivonone—single y scale per chartabsence · absence—
VictorypartialVictoryAxis.dependentAxisnormalised dual-axis recipetypes · strongvictory-core/lib/victory-theme/types.d.ts:42
visxpartialgrep: AxisRightsecond scale + AxisRight manuallygrep · weak@visx/axis/lib/index.d.ts:4
ApexChartsnativeyaxis.opposite, yaxis.seriesNametypes · strongapexcharts/types/apexcharts.d.ts:5036
Tremor (npm)unknown—conflict · unknown—
Observable Plotunknown—one y scale per plot (facets instead)conflict · unknown—
Vega-Litenativegrep: resolvelayer + resolve.scale.y independentgrep · weak2952: "AxisResolveMap"
AG Chartsnativegrep: keysaxes[].keys binds series to an axisgrep · weakag-charts-community/dist/types/src/module-support.d.ts:16
amCharts 5nativeValueAxispush multiple yAxestypes · strong@amcharts/amcharts5/.internal/charts/xy/axes/ValueAxis.d.ts:264
Google Chartsnativegrep: targetAxisIndexgrep · weak@types/google.visualization/index.d.ts:741
uPlotnativeOptions.axesseries.scale names a scaletypes · stronguplot/dist/uPlot.d.ts:381
TradingView Lightweight Chartsnativegrep: priceScaleIdleft/right/overlay price scalesgrep · weak967: * - the price scale used when adding a series without an explicit `priceScaleId`
MUI X ChartsnativeLineChart.yAxistypes · strong@mui/x-charts/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.mts:31
Mermaid (chart-ish diagrams only)unknown—conflict · unknown—
AntV G2nativegrep: independentscale.y.independentgrep · weak@antv/g2/lib/runtime/types/common.d.ts:101