Features · scale

Quantize / threshold / quantile scales

native

Binned colour scales

Matrix status native. Verification render · strong. ChartKit option: ChartKitChartSpecV1.encoding.color.scale.type=quantize, ChartKitChartSpecV1.encoding.color.scale.thresholds.

encoding.color.scale.type quantize or threshold. bins sets the quantize width. thresholds sets the cuts. On x or y the same words are an error and the hint points at the colour scale (CK3063).

Source: chartkit:packages/core/src/color-scale.ts

ChartKit spec

Passed validate() during npm run matrix:refresh. The SVG is the server render.

Oak is the hottest bay.Oak is the hottest bay.AshElmOak021402, Ash: -1202, Elm: no value02, Oak: no value14, Ash: no value14, Elm: 8014, Oak: 420kiln-12–9696–204204–312312–420
{
  "version": "1",
  "type": "heatmap",
  "data": [
    {
      "bay": "Ash",
      "bell": "02",
      "kiln": -12
    },
    {
      "bay": "Elm",
      "bell": "14",
      "kiln": 80
    },
    {
      "bay": "Oak",
      "bell": "14",
      "kiln": 420
    }
  ],
  "encoding": {
    "x": "bell",
    "y": "bay",
    "color": {
      "field": "kiln",
      "scale": {
        "type": "quantize",
        "bins": 4
      }
    }
  },
  "a11y": {
    "alt": "Oak is the hottest bay."
  },
  "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.quantize.md.

LibraryStatusOptionVerificationSource
Chart.jsnone—absence · absence—
Rechartsunknown—conflict · unknown—
Apache EChartsnativevisualMappiecewise splitNumber/piecestypes · strongecharts/types/dist/shared.d.ts:12590
HighchartsnativecolorAxis.dataClassestypes · stronghighcharts/highcharts.d.ts:8389
Plotly.jsnone—absence · absence—
Nivonativegrep: quantizegrep · weak@nivo/heatmap/dist/types/hooks.d.ts:30
Victorynone—absence · absence—
visxnativegrep: scaleQuantizegrep · weak@visx/scale/lib/index.d.ts:10
ApexChartsnativeplotOptions.heatmap.colorScale.rangestypes · strongapexcharts/types/apexcharts.d.ts:3434
Tremor (npm)none—absence · absence—
Observable Plotnativegrep: quantizegrep · weak@observablehq/plot/src/scales.d.ts:195
Vega-Litenativegrep: quantizegrep · weak20073: "description"
AG Chartsnone—absence · absence—
amCharts 5partialgrep: heatRulesgrep · weak@amcharts/amcharts5/examples/xy-bubble/config.json:549
Google Chartsnone—absence · absence—
uPlotnone—absence · absence—
TradingView Lightweight Chartsnone—absence · absence—
MUI X Chartsnativegrep: piecewisepiecewise color map thresholdsgrep · weak@mui/x-charts/ChartsLegend/piecewiseColorLegendClasses.d.ts:1
Mermaid (chart-ish diagrams only)none—absence · absence—
AntV G2nativegrep: quantizegrep · weak@antv/g2/lib/index.d.ts:100