Features · scale

Linear scale

native

Continuous linear axis

Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.encoding.y.scale.type=linear.

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

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": {
      "field": "units",
      "scale": {
        "type": "linear"
      }
    }
  },
  "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.linear.md.

LibraryStatusOptionVerificationSource
Chart.jsnativegrep: LinearScalegrep · weakchart.js/dist/types/index.d.ts:3307
RechartsnativeYAxis.scale=lineartypes · strongrecharts/types/cartesian/YAxis.d.ts:69
Apache EChartsnativeyAxis.type=valuetypes · strongecharts/types/dist/shared.d.ts:2729
HighchartsnativeyAxis.type=lineartypes · stronghighcharts/highcharts.d.ts:110754
Plotly.jsnativelayout.yaxis.type=lineartypes · strongplot-schema.json#layout.layoutAttributes.yaxis.type
NivonativeLine.yScaletypes · strong@nivo/line/dist/types/types.d.ts:132
VictorynativeVictoryChart.scaletypes · strongvictory-core/lib/victory-util/common-props.d.ts:42
visxnativegrep: scaleLineargrep · weak@visx/scale/lib/index.d.ts:3
ApexChartsnativeyaxisnumeric by defaulttypes · strongapexcharts/types/apexcharts.d.ts:1497
Tremor (npm)unknown—automatic onlyconflict · unknown—
Observable Plotnativegrep: lineargrep · weak@observablehq/plot/src/scales.d.ts:9
Vega-Litenativegrep: lineargrep · weak508: "description"
AG Chartsnativegrep: numberaxis type 'number'grep · weakag-charts-types/dist/types/src/serverSideRenderingOptions.d.ts:7
amCharts 5nativeValueAxistypes · strong@amcharts/amcharts5/.internal/charts/xy/axes/ValueAxis.d.ts:264
Google Chartsnativegrep: logScalenumeric by defaultgrep · weak@types/google.visualization/index.d.ts:532
uPlotnativeOptions.scalestypes · stronguplot/dist/uPlot.d.ts:379
TradingView Lightweight Chartsnativegrep: PriceScaleModenormal modegrep · weak145:export declare enum PriceScaleMode {
MUI X ChartsnativeLineChart.yAxis.scaleType=lineartypes · strong@mui/x-charts/models/axis.d.mts:365
Mermaid (chart-ish diagrams only)nativeMermaidConfig.xyCharty-axis min --> maxtypes · strongmermaid/dist/config.type.d.ts:225
AntV G2nativegrep: lineargrep · weak@antv/g2/lib/index.d.ts:91