Features · scale

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.

Units rose in Q2, on a signed log.Units rose in Q2, on a signed log.40455055Q1Q2
{
  "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.

LibraryStatusOptionVerificationSource
Chart.jsnone—absence · absence—
RechartsnativeYAxis.scale=symlogtypes · strongrecharts/types/cartesian/YAxis.d.ts:69
Apache EChartsnone—absence · absence—
Highchartsnone—absence · absence—
Plotly.jsnone—absence · absence—
Nivonativegrep: symloggrep · weak@nivo/scatterplot/dist/types/hooks.d.ts:14
Victorynone—absence · absence—
visxnativegrep: scaleSymloggrep · weak@visx/scale/lib/index.d.ts:12
ApexChartsnone—absence · absence—
Tremor (npm)none—absence · absence—
Observable Plotnativegrep: symloggrep · weak@observablehq/plot/src/scales.d.ts:177
Vega-Litenativegrep: symloggrep · weak21698: "description"
AG Chartsnone—absence · absence—
amCharts 5none—absence · absence—
Google Chartsnone—absence · absence—
uPlotnativegrep: asinhdistr: 4 (asinh)grep · weak139: static rangeAsinh(min
TradingView Lightweight Chartsnone—absence · absence—
MUI X ChartsnativeLineChart.yAxis.scaleType=symlogtypes · strong@mui/x-charts/models/axis.d.mts:365
Mermaid (chart-ish diagrams only)none—absence · absence—
AntV G2unknowngrep: symlogunverified · unknown—