Features · scale

One-sided domain (only min or only max)

native

Fix one end and auto the other

Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.encoding.y.scale.domain.

either end can be null

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

ChartKit spec

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

Units rose in Q2.Units rose in Q2.020406080Q1Q2
{
  "version": "1",
  "type": "line",
  "data": [
    {
      "quarter": "Q1",
      "units": 40
    },
    {
      "quarter": "Q2",
      "units": 55
    }
  ],
  "encoding": {
    "x": "quarter",
    "y": {
      "field": "units",
      "scale": {
        "domain": [
          0,
          80
        ]
      }
    }
  },
  "a11y": {
    "alt": "Units rose in Q2."
  },
  "size": {
    "width": 640,
    "height": 260
  }
}

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.domain.partial.md.

LibraryStatusOptionVerificationSource
Chart.jsnativegrep: suggestedMingrep · weakchart.js/dist/types/index.d.ts:1210
RechartsnativeYAxis.domain['auto', 100] / functionstypes · strongrecharts/types/cartesian/YAxis.d.ts:53
Apache EChartsnativeyAxis.minmin onlytypes · strongecharts/types/dist/shared.d.ts:2630
HighchartsnativeyAxis.softMin, yAxis.softMaxtypes · stronghighcharts/highcharts.d.ts:110582
Plotly.jsnativelayout.yaxis.autorangeoptionsautorangeoptions.minallowed etc.types · strongplot-schema.json#layout.layoutAttributes.yaxis.autorangeoptions
Nivonativegrep: minmin:'auto'grep · weak@nivo/tree/package.json:36
Victorynone—absence · absence—
visxnone—absence · absence—
ApexChartsnativeyaxis.minmin only or functiontypes · strongapexcharts/types/apexcharts.d.ts:5049
Tremor (npm)nativeLineChart.minValuetypes · strong@tremor/react/dist/index.d.ts:70
Observable Plotnativegrep: domaingrep · weak@observablehq/plot/src/scales.d.ts:197
Vega-Litenativegrep: domainMingrep · weak21743: "domainMax"
AG Chartsnativegrep: mingrep · weakag-charts-types/dist/types/src/presets/sparkline/sparklineOptions.d.ts:49
amCharts 5nativegrep: mingrep · weak@amcharts/amcharts5/.internal/charts/xy/series/XYSeries.d.ts:35
Google Chartsnativegrep: viewWindowviewWindow.min onlygrep · weak@types/google.visualization/index.d.ts:547
uPlotnativegrep: rangefunction returning [min, max]grep · weak131: /** re-ranges a given min/max by a multiple of the range's magnitude (used internally to expand/snap/pad numeric y scales) */
TradingView Lightweight Chartsnone—absence · absence—
MUI X ChartsnativeLineChart.yAxis.mintypes · strong@mui/x-charts/models/axis.d.mts:467
Mermaid (chart-ish diagrams only)none—absence · absence—
AntV G2nativegrep: domainMingrep · weak@antv/g2/lib/spec/scale.d.ts:13