Features · scale

Square-root / power scale

native

Sqrt or pow scale (bubble areas, skewed data)

Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.encoding.y.scale.type=sqrt.

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.40455055Q1Q2
{
  "version": "1",
  "type": "line",
  "data": [
    {
      "quarter": "Q1",
      "units": 40
    },
    {
      "quarter": "Q2",
      "units": 55
    }
  ],
  "encoding": {
    "x": "quarter",
    "y": {
      "field": "units",
      "scale": {
        "type": "sqrt"
      }
    }
  },
  "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.sqrt.md.

LibraryStatusOptionVerificationSource
Chart.jsnone—absence · absence—
RechartsnativeYAxis.scale=sqrttypes · strongrecharts/types/cartesian/YAxis.d.ts:69
Apache EChartsnone—absence · absence—
Highchartsnone—absence · absence—
Plotly.jsnone—absence · absence—
Nivounknown—conflict · unknown—
Victorynativegrep: sqrtgrep · weakvictory-core/lib/types/prop-types.d.ts:95
visxnativegrep: scaleSqrtgrep · weak@visx/scale/lib/index.d.ts:8
ApexChartsunknown—conflict · unknown—
Tremor (npm)none—absence · absence—
Observable Plotnativegrep: sqrtgrep · weak@observablehq/plot/src/scales.d.ts:174
Vega-Litenativegrep: sqrtgrep · weak21968: "description"
AG Chartsnone—absence · absence—
amCharts 5none—absence · absence—
Google Chartsnone—absence · absence—
uPlotnone—absence · absence—
TradingView Lightweight Chartsnone—absence · absence—
MUI X ChartsnativeLineChart.yAxis.scaleType=sqrttypes · strong@mui/x-charts/models/axis.d.mts:365
Mermaid (chart-ish diagrams only)none—absence · absence—
AntV G2nativegrep: sqrtgrep · weak@antv/g2/lib/index.d.ts:98