Features · scale

Sequential / diverging colour scale

native

Continuous colour mapping for heatmaps etc

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

sequential, diverging, quantize, and threshold. A threshold legend labels the cuts, not the data ends. scheme blue, teal, orange, or violet.

Source: chartkit:packages/core/src/generated/schema.ts:779

ChartKit spec

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

B is darker.B is darker.LABA, L: 1B, L: 4v14
{
  "version": "1",
  "type": "heatmap",
  "data": [
    {
      "x": "A",
      "y": "L",
      "v": 1
    },
    {
      "x": "B",
      "y": "L",
      "v": 4
    }
  ],
  "encoding": {
    "x": "x",
    "y": "y",
    "color": {
      "field": "v",
      "scale": {
        "type": "sequential"
      }
    }
  },
  "a11y": {
    "alt": "B is darker."
  },
  "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.color.sequential.md.

LibraryStatusOptionVerificationSource
Chart.jsunknown—conflict · unknown—
Rechartsunknown—conflict · unknown—
Apache EChartsnativevisualMap.inRangecontinuous visualMaptypes · strongecharts/types/dist/shared.d.ts:5807
HighchartsnativecolorAxis.stopstypes · stronghighcharts/highcharts.d.ts:8692
Plotly.jsnativetrace.colorscaletypes · strongplot-schema.json#traces.{choropleth,choroplethmap,cone,contour,contourcarpet,densitymap,…}.attributes.colorscale
Nivonativegrep: colorsgrep · weak@nivo/tree/package.json:33
Victoryunknown—conflict · unknown—
visxnativegrep: scaleLinearwith colour rangegrep · weak@visx/scale/lib/index.d.ts:3
ApexChartsnativeplotOptions.heatmap.colorScaletypes · strongapexcharts/types/apexcharts.d.ts:3433
Tremor (npm)none—absence · absence—
Observable Plotnativegrep: schemegrep · weak@observablehq/plot/src/scales.d.ts:7
Vega-Litenativegrep: schemegrep · weak4935: "ColorScheme"
AG Chartsnative entAgHeatmapSeriesOptions.colorKeyheatmap colorScale + gradient legendtypes · strongag-charts-types/dist/types/src/series/cartesian/heatmapOptions.d.ts:66
amCharts 5nativegrep: heatRulesgrep · weak@amcharts/amcharts5/examples/xy-bubble/config.json:549
Google Chartsnativegrep: colorAxisgrep · weak@types/google.visualization/index.d.ts:373
uPlotnone—absence · absence—
TradingView Lightweight Chartsnone—absence · absence—
MUI X Chartsnativegrep: continuouscolorMap type 'continuous'grep · weak@mui/x-charts-pro/Heatmap/Heatmap.d.ts:24
Mermaid (chart-ish diagrams only)unknown—conflict · unknown—
AntV G2nativegrep: palettegrep · weak@antv/g2/lib/index.d.ts:89