Reversed scale
native
Flip axis direction
Matrix status native. Verification runtime · strong. ChartKit option: ChartKitChartSpecV1.encoding.y.scale.reverse.
drawn on createRenderer([line]) since PR #17 (main 116d0af)
Source: chartkit:packages/core/src/generated/schema.ts:701
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": {
"reverse": true
}
}
},
"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.reverse.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | native | grep: reverse | grep · weak | chart.js/dist/types/index.d.ts:1054 |
| Recharts | native | YAxis.reversed | types · strong | recharts/types/util/types.d.ts:850 |
| Apache ECharts | native | yAxis.inverse | types · strong | echarts/types/dist/shared.d.ts:2574 |
| Highcharts | native | yAxis.reversed | types · strong | highcharts/highcharts.d.ts:110532 |
| Plotly.js | native | layout.yaxis.autorange=reversed | types · strong | plot-schema.json#layout.layoutAttributes.yaxis.autorange |
| Nivo | native | grep: reverse | grep · weak | @nivo/scales/dist/types/types.d.ts:38 |
| Victory | partial | VictoryChart.scalevia domain ordering | types · strong | victory-core/lib/victory-util/common-props.d.ts:42 |
| visx | unknown | — | conflict · unknown | — |
| ApexCharts | native | yaxis.reversed | types · strong | apexcharts/types/apexcharts.d.ts:5037 |
| Tremor (npm) | none | — | absence · absence | — |
| Observable Plot | native | grep: reverse | grep · weak | @observablehq/plot/src/scales.d.ts:364 |
| Vega-Lite | native | grep: reverse | grep · weak | 21930: "reverse" |
| AG Charts | native | grep: reverse | grep · weak | ag-charts-types/dist/types/src/presets/sparkline/sparklineAxisOptions.d.ts:9 |
| amCharts 5 | native | grep: inversed | grep · weak | @amcharts/amcharts5/.internal/charts/hierarchy/Tree.d.ts:38 |
| Google Charts | native | grep: directionvAxis.direction: -1 | grep · weak | @types/google.visualization/index.d.ts:528 |
| uPlot | native | grep: dirscales.y.dir: -1 | grep · weak | 480: /** when x & y are true, sets an upper drag limit in CSS px for adaptive/unidirectional behavior */ |
| TradingView Lightweight Charts | native | grep: invertScale | grep · weak | 3726: invertScale |
| MUI X Charts | native | LineChart.yAxis.reverse | types · strong | @mui/x-charts/models/axis.d.mts:525 |
| Mermaid (chart-ish diagrams only) | unknown | — | conflict · unknown | — |
| AntV G2 | native | grep: reverse | grep · weak | @antv/g2/lib/index.d.ts:168 |