Features · theme

Chart and plot background

native

Background colour/transparency of chart and plot area

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

Source: chartkit:packages/core/src/generated/schema.ts:348, chartkit:packages/core/src/generated/schema.ts:352

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": {
      "background": "#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.background.md.

LibraryStatusOptionVerificationSource
Chart.jsmanualPlugin.afterDatasetsDrawpluginmechanism · weakchart.js/dist/types/index.d.ts:1051
Rechartsunknown—conflict · unknown—
Apache EChartsnativebackgroundColortypes · strongecharts/types/dist/shared.d.ts:7435
Highchartsnativechart.backgroundColor, chart.plotBackgroundColortypes · stronghighcharts/highcharts.d.ts:6301
Plotly.jsnativelayout.paper_bgcolor, layout.plot_bgcolortypes · strongplot-schema.json#layout.layoutAttributes.paper_bgcolor
Nivonativegrep: backgroundgrep · weak@nivo/core/index.d.ts:149
VictorypartialVictoryChart.styletypes · strongvictory-chart/lib/victory-chart.d.ts:22
visxmanualGroupmechanism · weak@visx/group/lib/Group.d.ts:15
ApexChartsnativechart.backgroundtypes · strongapexcharts/types/apexcharts.d.ts:1827
Tremor (npm)unknown—conflict · unknown—
Observable Plotnativegrep: stylegrep · weak@observablehq/plot/src/plot.d.ts:13
Vega-Litenativegrep: backgroundgrep · weak238: "description"
AG ChartsnativeAgChartOptions.backgroundtypes · strongag-charts-types/dist/types/src/chart/chartOptions.d.ts:248
amCharts 5nativegrep: backgroundgrep · weak@amcharts/amcharts5/.internal/plugins/json/Serializer.d.ts:167
Google Chartsnativegrep: backgroundColorgrep · weak@types/google.visualization/index.d.ts:372
uPlotmanualOptions.hooksmechanism · weakuplot/dist/uPlot.d.ts:394
TradingView Lightweight Chartsnativegrep: backgroundgrep · weak515: * The crosshair marker background color. An empty string falls back to the color of the series under the crosshair.
MUI X Chartsnativegrep: sxgrep · weak@mui/x-charts/index.d.ts:11
Mermaid (chart-ish diagrams only)nativegrep: backgroundgrep · weakmermaid/dist/styles.d.ts:14
AntV G2nativegrep: viewFillgrep · weak@antv/g2/lib/theme/create.d.ts:43