Symlog / signed log scale
native
Log-like scale that handles zero and negatives
Matrix status native. Verification render · strong. ChartKit option: ChartKitChartSpecV1.encoding.y.scale.type=symlog, ChartKitChartSpecV1.encoding.y.scale.constant.
encoding.y.scale.type is symlog. constant is the linear half-width around zero, default 1. asinh, symLog, and signed-log repair to symlog (CK3070). A constant on any other scale warns CK3062.
Source: chartkit:packages/core/src/svg.ts
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": "symlog",
"constant": 1
}
}
},
"a11y": {
"alt": "Units rose in Q2, on a signed log."
},
"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.symlog.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | none | — | absence · absence | — |
| Recharts | native | YAxis.scale=symlog | types · strong | recharts/types/cartesian/YAxis.d.ts:69 |
| Apache ECharts | none | — | absence · absence | — |
| Highcharts | none | — | absence · absence | — |
| Plotly.js | none | — | absence · absence | — |
| Nivo | native | grep: symlog | grep · weak | @nivo/scatterplot/dist/types/hooks.d.ts:14 |
| Victory | none | — | absence · absence | — |
| visx | native | grep: scaleSymlog | grep · weak | @visx/scale/lib/index.d.ts:12 |
| ApexCharts | none | — | absence · absence | — |
| Tremor (npm) | none | — | absence · absence | — |
| Observable Plot | native | grep: symlog | grep · weak | @observablehq/plot/src/scales.d.ts:177 |
| Vega-Lite | native | grep: symlog | grep · weak | 21698: "description" |
| AG Charts | none | — | absence · absence | — |
| amCharts 5 | none | — | absence · absence | — |
| Google Charts | none | — | absence · absence | — |
| uPlot | native | grep: asinhdistr: 4 (asinh) | grep · weak | 139: static rangeAsinh(min |
| TradingView Lightweight Charts | none | — | absence · absence | — |
| MUI X Charts | native | LineChart.yAxis.scaleType=symlog | types · strong | @mui/x-charts/models/axis.d.mts:365 |
| Mermaid (chart-ish diagrams only) | none | — | absence · absence | — |
| AntV G2 | unknown | grep: symlog | unverified · unknown | — |