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.
{
"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.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | native | grep: LinearScale | grep · weak | chart.js/dist/types/index.d.ts:3307 |
| Recharts | native | YAxis.scale=linear | types · strong | recharts/types/cartesian/YAxis.d.ts:69 |
| Apache ECharts | native | yAxis.type=value | types · strong | echarts/types/dist/shared.d.ts:2729 |
| Highcharts | native | yAxis.type=linear | types · strong | highcharts/highcharts.d.ts:110754 |
| Plotly.js | native | layout.yaxis.type=linear | types · strong | plot-schema.json#layout.layoutAttributes.yaxis.type |
| Nivo | native | Line.yScale | types · strong | @nivo/line/dist/types/types.d.ts:132 |
| Victory | native | VictoryChart.scale | types · strong | victory-core/lib/victory-util/common-props.d.ts:42 |
| visx | native | grep: scaleLinear | grep · weak | @visx/scale/lib/index.d.ts:3 |
| ApexCharts | native | yaxisnumeric by default | types · strong | apexcharts/types/apexcharts.d.ts:1497 |
| Tremor (npm) | unknown | —automatic only | conflict · unknown | — |
| Observable Plot | native | grep: linear | grep · weak | @observablehq/plot/src/scales.d.ts:9 |
| Vega-Lite | native | grep: linear | grep · weak | 508: "description" |
| AG Charts | native | grep: numberaxis type 'number' | grep · weak | ag-charts-types/dist/types/src/serverSideRenderingOptions.d.ts:7 |
| amCharts 5 | native | ValueAxis | types · strong | @amcharts/amcharts5/.internal/charts/xy/axes/ValueAxis.d.ts:264 |
| Google Charts | native | grep: logScalenumeric by default | grep · weak | @types/google.visualization/index.d.ts:532 |
| uPlot | native | Options.scales | types · strong | uplot/dist/uPlot.d.ts:379 |
| TradingView Lightweight Charts | native | grep: PriceScaleModenormal mode | grep · weak | 145:export declare enum PriceScaleMode { |
| MUI X Charts | native | LineChart.yAxis.scaleType=linear | types · strong | @mui/x-charts/models/axis.d.mts:365 |
| Mermaid (chart-ish diagrams only) | native | MermaidConfig.xyCharty-axis min --> max | types · strong | mermaid/dist/config.type.d.ts:225 |
| AntV G2 | native | grep: linear | grep · weak | @antv/g2/lib/index.d.ts:91 |