Features · theme

Design tokens (colours, font, grid, axis)

native

Override base theme tokens

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

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

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": {
      "axis": "#5c6b7a"
    }
  }
}

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

LibraryStatusOptionVerificationSource
Chart.jsnativegrep: defaultsChart.defaults.font / colorgrep · weakchart.js/dist/types/index.d.ts:561
Rechartspartialgrep: stylegrep · weakrecharts/types/theme/graphicalItemIdentity.d.ts:5
Apache EChartsnativetextStyle, backgroundColortypes · strongecharts/types/dist/shared.d.ts:7437
Highchartsnativechart.styletypes · stronghighcharts/highcharts.d.ts:6649
Plotly.jsnativelayout.font, layout.paper_bgcolortypes · strongplot-schema.json#layout.layoutAttributes.font
NivonativeLine.themetheme object (text, axis, grid, tooltip...)types · strong@nivo/line/dist/types/types.d.ts:136
VictorynativeVictoryChart.themetypes · strongvictory-core/lib/victory-util/common-props.d.ts:58
visxnativegrep: buildChartThemegrep · weak@visx/xychart/lib/index.d.ts:38
ApexChartsnativechart.fontFamily, chart.foreColortypes · strongapexcharts/types/apexcharts.d.ts:1826
Tremor (npm)partialgrep: tremortailwind config tokensgrep · weak@tremor/react/dist/lib/tremorTwMerge.d.ts:1
Observable Plotnativegrep: stylegrep · weak@observablehq/plot/src/plot.d.ts:13
Vega-Litenativegrep: configgrep · weak130: "AnyMarkConfig"
AG Chartsnativegrep: themetheme.params / overridesgrep · weakag-charts-types/dist/types/src/main.d.ts:38
amCharts 5nativegrep: Themetheme rulesgrep · weak@amcharts/amcharts5/xy.d.ts:32
Google Chartsnativegrep: fontNamegrep · weak@types/google.visualization/index.d.ts:372
uPlotmanualOptions.hooksper-optionmechanism · weakuplot/dist/uPlot.d.ts:394
TradingView Lightweight Chartsnativegrep: layoutgrep · weak323: * fontFamily
MUI X Chartsnativegrep: ThemeProvidergrep · weak@mui/x-charts/ChartsGrid/index.d.ts:2
Mermaid (chart-ish diagrams only)nativeMermaidConfig.themeVariablestypes · strongmermaid/dist/config.type.d.ts:70
AntV G2nativegrep: themegrep · weak@antv/g2/lib/index.d.ts:105