Pure JSON spec (serialisable, no functions)
native
Whole chart is a JSON document
Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.version.
JSON-only by design (functions never needed)
Source: chartkit:packages/core/src/generated/schema.ts:20
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
}
}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: spec.declarative.json.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | partial | ChartConfigurationJSON-like config; many features need callbacks | types · strong | chart.js/dist/types/index.d.ts:3865 |
| Recharts | unknown | —JSX components | conflict · unknown | — |
| Apache ECharts | partial | EChartsOptionJSON option; formatters often functions | types · strong | echarts/types/dist/shared.d.ts:12566 |
| Highcharts | partial | OptionsJSON options; formatters often functions | types · strong | highcharts/highcharts.d.ts:93407 |
| Plotly.js | native | layoutJSON traces + layout (figure JSON) | types · strong | plot-schema.json#layout.layoutAttributes. |
| Nivo | none | —React props with functions | absence · absence | — |
| Victory | unknown | — | conflict · unknown | — |
| visx | none | — | absence · absence | — |
| ApexCharts | partial | ApexOptionsJSON-like; formatters are functions | types · strong | apexcharts/types/apexcharts.d.ts:1449 |
| Tremor (npm) | none | — | absence · absence | — |
| Observable Plot | none | —JS function calls | absence · absence | — |
| Vega-Lite | native | TopLevelSpeccanonical JSON grammar | types · strong | vega-lite/build/spec/index.d.ts:43 |
| AG Charts | partial | AgChartOptions | types · strong | ag-charts-types/dist/types/src/chartBuilderOptions.d.ts:50 |
| amCharts 5 | plugin | —JSON plugin (plugins/json) serialisation | npm · weak | — |
| Google Charts | partial | grep: optionsJSON options + DataTable | grep · weak | @types/google.visualization/index.d.ts:3 |
| uPlot | none | —imperative options with functions | absence · absence | — |
| TradingView Lightweight Charts | none | — | absence · absence | — |
| MUI X Charts | none | — | absence · absence | — |
| Mermaid (chart-ish diagrams only) | none | —text DSL | absence · absence | — |
| AntV G2 | native | G2SpecJSON spec (or chainable API) | types · strong | @antv/g2/lib/spec/index.d.ts:4 |