Features · scale

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.

Units rose in Q2.Units rose in Q2.50Q1Q2
{
  "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.

LibraryStatusOptionVerificationSource
Chart.jsnativegrep: LogarithmicScalegrep · weakchart.js/dist/types/index.d.ts:3356
RechartsnativeYAxis.scale=logtypes · strongrecharts/types/cartesian/YAxis.d.ts:69
Apache EChartsnativeyAxis.type=logtypes · strongecharts/types/dist/shared.d.ts:2729
HighchartsnativeyAxis.type=logarithmictypes · stronghighcharts/highcharts.d.ts:110754
Plotly.jsnativelayout.yaxis.type=logtypes · strongplot-schema.json#layout.layoutAttributes.yaxis.type
Nivonativegrep: LogScalegrep · weak@nivo/scales/dist/types/symlogScale.d.ts:2
Victorynativegrep: loggrep · weakvictory-core/src/victory-util/immutable-types.d.ts:110
visxnativegrep: scaleLoggrep · weak@visx/scale/lib/index.d.ts:7
ApexChartsnativeyaxis.logarithmictypes · strongapexcharts/types/apexcharts.d.ts:5038
Tremor (npm)none—absence · absence—
Observable Plotnativegrep: loggrep · weak@observablehq/plot/src/scales.d.ts:212
Vega-Litenativegrep: loggrep · weak21381: "log",
AG Chartsnativegrep: loggrep · weakag-charts-community/dist/types/src/scale/logScale.d.ts:5
amCharts 5nativegrep: logarithmicgrep · weak@amcharts/amcharts5/.internal/charts/xy/axes/ValueAxis.d.ts:45
Google Chartsnativegrep: logScalegrep · weak@types/google.visualization/index.d.ts:532
uPlotnativegrep: distrdistr: 3 (log)grep · weak612: export const enum Distr {
TradingView Lightweight Chartsnativegrep: LogarithmicPriceScaleMode.Logarithmicgrep · weak151: * Price scale shows prices. Price range changes logarithmically.
MUI X ChartsnativeLineChart.yAxis.scaleType=logtypes · strong@mui/x-charts/models/axis.d.mts:365
Mermaid (chart-ish diagrams only)unknown—conflict · unknown—
AntV G2nativegrep: loggrep · weak@antv/g2/lib/index.d.ts:24