Features · theme

Custom colour palette

native

Replace the series colour cycle

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: theme.palette.md.

LibraryStatusOptionVerificationSource
Chart.jsmanualPlugin.afterDatasetsDrawper dataset or Colors pluginmechanism · weakchart.js/dist/types/index.d.ts:1051
RechartsmanualCustomizedmechanism · weakrecharts/types/component/Customized.d.ts:26
Apache EChartsnativecolortypes · strongecharts/types/dist/shared.d.ts:7594
Highchartsnativecolorstypes · stronghighcharts/highcharts.d.ts:93499
Plotly.jsnativelayout.colorwaytypes · strongplot-schema.json#layout.layoutAttributes.colorway
NivonativeLine.colorstypes · strong@nivo/line/dist/types/types.d.ts:137
VictorynativeVictoryChart.colorScaletypes · strongvictory-core/lib/victory-util/common-props.d.ts:21
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: rangegrep · weak164: "description"
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
uPlotmanualOptions.hooksmechanism · weakuplot/dist/uPlot.d.ts:394
TradingView Lightweight Chartsmanualgrep: ICustomSeriesPaneViewmechanism · weak1629: addCustomSeries<TData extends CustomData<HorzScaleItem>, TOptions extends CustomSeriesOptions, TPartialOptions extends SeriesPartialOptions<TOptions> = SeriesPartialOptions<TOptions>>(customPaneView
MUI X Chartsnativegrep: colorspalettes exportedgrep · weak@mui/x-charts/SparkLineChart/SparkLineChart.d.ts:16
Mermaid (chart-ish diagrams only)nativegrep: plotColorPalettegrep · weakmermaid/dist/themes/theme-redux.d.ts:114
AntV G2nativegrep: palettegrep · weak@antv/g2/lib/index.d.ts:89