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.
{
"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.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | unknown | — | conflict · unknown | — |
| Recharts | unknown | — | conflict · unknown | — |
| Apache ECharts | native | visualMap.inRangecontinuous visualMap | types · strong | echarts/types/dist/shared.d.ts:5807 |
| Highcharts | native | colorAxis.stops | types · strong | highcharts/highcharts.d.ts:8692 |
| Plotly.js | native | trace.colorscale | types · strong | plot-schema.json#traces.{choropleth,choroplethmap,cone,contour,contourcarpet,densitymap,…}.attributes.colorscale |
| Nivo | native | grep: colors | grep · weak | @nivo/tree/package.json:33 |
| Victory | unknown | — | conflict · unknown | — |
| visx | native | grep: scaleLinearwith colour range | grep · weak | @visx/scale/lib/index.d.ts:3 |
| ApexCharts | native | plotOptions.heatmap.colorScale | types · strong | apexcharts/types/apexcharts.d.ts:3433 |
| Tremor (npm) | none | — | absence · absence | — |
| Observable Plot | native | grep: scheme | grep · weak | @observablehq/plot/src/scales.d.ts:7 |
| Vega-Lite | native | grep: scheme | grep · weak | 4935: "ColorScheme" |
| AG Charts | native ent | AgHeatmapSeriesOptions.colorKeyheatmap colorScale + gradient legend | types · strong | ag-charts-types/dist/types/src/series/cartesian/heatmapOptions.d.ts:66 |
| amCharts 5 | native | grep: heatRules | grep · weak | @amcharts/amcharts5/examples/xy-bubble/config.json:549 |
| Google Charts | native | grep: colorAxis | grep · weak | @types/google.visualization/index.d.ts:373 |
| uPlot | none | — | absence · absence | — |
| TradingView Lightweight Charts | none | — | absence · absence | — |
| MUI X Charts | native | grep: continuouscolorMap type 'continuous' | grep · weak | @mui/x-charts-pro/Heatmap/Heatmap.d.ts:24 |
| Mermaid (chart-ish diagrams only) | unknown | — | conflict · unknown | — |
| AntV G2 | native | grep: palette | grep · weak | @antv/g2/lib/index.d.ts:89 |