Features · scale

Categorical colour scale / palette

native

Map categories to a palette

Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.theme.tokens.series.

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

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": "units"
  },
  "a11y": {
    "alt": "Units rose in Q2."
  },
  "size": {
    "width": 640,
    "height": 260
  },
  "theme": {
    "tokens": {
      "series": [
        "#0066cc",
        "#c45c26"
      ]
    }
  }
}

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.ordinal.md.

LibraryStatusOptionVerificationSource
Chart.jsmanualPlugin.afterDatasetsDrawdataset colours; Colors plugin cycles defaultsmechanism · weakchart.js/dist/types/index.d.ts:1051
RechartspartialCellper-series colours manualtypes · strongrecharts/types/component/Cell.d.ts:25
Apache EChartsnativecolortop-level palettetypes · strongecharts/types/dist/shared.d.ts:7594
Highchartsnativecolorstypes · stronghighcharts/highcharts.d.ts:93499
Plotly.jsnativelayout.colorwaytypes · strongplot-schema.json#layout.layoutAttributes.colorway
NivonativeLine.colorsscheme name or arraytypes · strong@nivo/line/dist/types/types.d.ts:137
VictorynativeVictoryChart.themetypes · strongvictory-core/lib/victory-util/common-props.d.ts:58
visxnativegrep: scaleOrdinalgrep · weak@visx/shape/lib/shapes/BarGroup.d.ts:48
ApexChartsnativecolorstypes · strongapexcharts/types/apexcharts.d.ts:1457
Tremor (npm)nativeLineChart.colorstypes · strong@tremor/react/dist/index.d.ts:59
Observable Plotnativegrep: schemegrep · weak@observablehq/plot/src/scales.d.ts:2
Vega-Litenativegrep: schemegrep · weak4935: "ColorScheme"
AG Chartsnativegrep: palettegrep · weakag-charts-types/dist/types/src/integratedCharts.d.ts:2
amCharts 5nativeColorSettypes · strong@amcharts/amcharts5/.internal/core/util/ColorSet.d.ts:75
Google ChartsnativeLineChartOptions.colorstypes · strong@types/google.visualization/index.d.ts:786
uPlotnone—absence · absence—
TradingView Lightweight Chartsnone—absence · absence—
MUI X Chartsnativegrep: ordinalcolorMap type 'ordinal'grep · weak@mui/x-charts/hooks/useTicks.d.ts:2
Mermaid (chart-ish diagrams only)nativegrep: plotColorPalettegrep · weakmermaid/dist/diagrams/xychart/chartBuilder/interfaces.d.ts:20
AntV G2nativegrep: palettegrep · weak@antv/g2/lib/index.d.ts:89