Features · scale

Explicit domain (min/max)

native

Fix axis min and max

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

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

LibraryStatusOptionVerificationSource
Chart.jsnativegrep: suggestedMinscales.y.min / max / suggestedMingrep · weakchart.js/dist/types/index.d.ts:1210
RechartsnativeYAxis.domaintypes · strongrecharts/types/cartesian/YAxis.d.ts:53
Apache EChartsnativeyAxis.min, yAxis.maxtypes · strongecharts/types/dist/shared.d.ts:2630
HighchartsnativeyAxis.min, yAxis.maxtypes · stronghighcharts/highcharts.d.ts:110317
Plotly.jsnativelayout.yaxis.rangetypes · strongplot-schema.json#layout.layoutAttributes.yaxis.range
NivonativeLine.yScaletypes · strong@nivo/line/dist/types/types.d.ts:132
VictorynativeVictoryChart.domaintypes · strongvictory-chart/lib/victory-chart.d.ts:15
visxnativegrep: domaingrep · weak@visx/stats/lib/ViolinPlot.d.ts:2
ApexChartsnativeyaxis.min, yaxis.maxtypes · strongapexcharts/types/apexcharts.d.ts:5049
Tremor (npm)nativeLineChart.minValue, LineChart.maxValuetypes · strong@tremor/react/dist/index.d.ts:70
Observable Plotnativegrep: domaingrep · weak@observablehq/plot/src/scales.d.ts:197
Vega-Litenativegrep: domaingrep · weak524: "description"
AG Chartsnativegrep: minaxes[].min / maxgrep · weakag-charts-types/dist/types/src/presets/sparkline/sparklineOptions.d.ts:49
amCharts 5nativegrep: strictMinMaxgrep · weak@amcharts/amcharts5/.internal/charts/xy/series/XYSeries.d.ts:35
Google Chartsnativegrep: viewWindowgrep · weak@types/google.visualization/index.d.ts:547
uPlotnativegrep: rangescales.y.range / min / maxgrep · 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 Chartsnativegrep: autoscaleInfoProvidergrep · weak536:export interface AutoScaleMargins {
MUI X ChartsnativeLineChart.yAxis.min, LineChart.yAxis.maxtypes · strong@mui/x-charts/models/axis.d.mts:467
Mermaid (chart-ish diagrams only)nativeMermaidConfig.xyCharty-axis min --> maxtypes · strongmermaid/dist/config.type.d.ts:225
AntV G2nativegrep: domaingrep · weak@antv/g2/lib/runtime/types/options.d.ts:100