Logarithmic scale
native
Log axis
Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.encoding.y.scale.type=log.
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": "log"
}
}
},
"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.log.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | native | grep: LogarithmicScale | grep · weak | chart.js/dist/types/index.d.ts:3356 |
| Recharts | native | YAxis.scale=log | types · strong | recharts/types/cartesian/YAxis.d.ts:69 |
| Apache ECharts | native | yAxis.type=log | types · strong | echarts/types/dist/shared.d.ts:2729 |
| Highcharts | native | yAxis.type=logarithmic | types · strong | highcharts/highcharts.d.ts:110754 |
| Plotly.js | native | layout.yaxis.type=log | types · strong | plot-schema.json#layout.layoutAttributes.yaxis.type |
| Nivo | native | grep: LogScale | grep · weak | @nivo/scales/dist/types/symlogScale.d.ts:2 |
| Victory | native | grep: log | grep · weak | victory-core/src/victory-util/immutable-types.d.ts:110 |
| visx | native | grep: scaleLog | grep · weak | @visx/scale/lib/index.d.ts:7 |
| ApexCharts | native | yaxis.logarithmic | types · strong | apexcharts/types/apexcharts.d.ts:5038 |
| Tremor (npm) | none | — | absence · absence | — |
| Observable Plot | native | grep: log | grep · weak | @observablehq/plot/src/scales.d.ts:212 |
| Vega-Lite | native | grep: log | grep · weak | 21381: "log", |
| AG Charts | native | grep: log | grep · weak | ag-charts-community/dist/types/src/scale/logScale.d.ts:5 |
| amCharts 5 | native | grep: logarithmic | grep · weak | @amcharts/amcharts5/.internal/charts/xy/axes/ValueAxis.d.ts:45 |
| Google Charts | native | grep: logScale | grep · weak | @types/google.visualization/index.d.ts:532 |
| uPlot | native | grep: distrdistr: 3 (log) | grep · weak | 612: export const enum Distr { |
| TradingView Lightweight Charts | native | grep: LogarithmicPriceScaleMode.Logarithmic | grep · weak | 151: * Price scale shows prices. Price range changes logarithmically. |
| MUI X Charts | native | LineChart.yAxis.scaleType=log | types · strong | @mui/x-charts/models/axis.d.mts:365 |
| Mermaid (chart-ish diagrams only) | unknown | — | conflict · unknown | — |
| AntV G2 | native | grep: log | grep · weak | @antv/g2/lib/index.d.ts:24 |