Dark mode
native
Dark theme / auto light-dark
Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.theme.preset=midnight.
dark preset, or auto light/dark by default; theme.mode light|dark warns CK3012 since PR #16
Source: chartkit:packages/core/src/generated/schema.ts:315
ChartKit spec
Passed validate() during npm run matrix:refresh. The SVG is the server render.
{
"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": {
"preset": "midnight"
}
}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.dark.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | manual | Plugin.afterDatasetsDrawset colours manually | mechanism · weak | chart.js/dist/types/index.d.ts:1051 |
| Recharts | manual | Customized | mechanism · weak | recharts/types/component/Customized.d.ts:26 |
| Apache ECharts | native | grep: darkinit(el, 'dark') | grep · weak | echarts/types/src/util/types.d.ts:581 |
| Highcharts | native | grep: darkdark themes / adaptive theme module | grep · weak | highcharts/highcharts.src.d.ts:680 |
| Plotly.js | native | layout.templateplotly_dark | types · strong | plot-schema.json#layout.layoutAttributes.template |
| Nivo | partial | Line.theme | types · strong | @nivo/line/dist/types/types.d.ts:136 |
| Victory | manual | VictoryBarProps.dataComponent | mechanism · weak | victory-core/lib/victory-util/common-props.d.ts:9 |
| visx | native | grep: darkTheme | grep · weak | @visx/xychart/lib/index.d.ts:37 |
| ApexCharts | native | theme.mode=dark | types · strong | apexcharts/types/apexcharts.d.ts:5303 |
| Tremor (npm) | partial | grep: darkTailwind dark: classes | grep · weak | @tremor/react/dist/lib/theme.d.ts:9 |
| Observable Plot | manual | grep: renderCSS currentColor | mechanism · weak | @observablehq/plot/src/scales.d.ts:166 |
| Vega-Lite | plugin | —dark theme | npm · weak | — |
| AG Charts | native | grep: dark | grep · weak | ag-charts-community/dist/types/src/integrated-charts-theme.d.ts:24 |
| amCharts 5 | native | grep: DarkTheme | grep · weak | @amcharts/amcharts5/themes/SpiritedDark.d.ts:1 |
| Google Charts | unknown | — | conflict · unknown | — |
| uPlot | manual | Options.hooks | mechanism · weak | uplot/dist/uPlot.d.ts:394 |
| TradingView Lightweight Charts | native | grep: ColorType | grep · weak | 26:export declare enum ColorType { |
| MUI X Charts | native | grep: palettefollows MUI palette mode | grep · weak | @mui/x-charts/index.d.ts:5 |
| Mermaid (chart-ish diagrams only) | native | grep: darkMode | grep · weak | mermaid/dist/utils.d.ts:25 |
| AntV G2 | native | grep: dark | grep · weak | @antv/g2/lib/index.d.ts:106 |