Features · spec

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.

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
  }
}

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.

LibraryStatusOptionVerificationSource
Chart.jspartialChartConfigurationJSON-like config; many features need callbackstypes · strongchart.js/dist/types/index.d.ts:3865
Rechartsunknown—JSX componentsconflict · unknown—
Apache EChartspartialEChartsOptionJSON option; formatters often functionstypes · strongecharts/types/dist/shared.d.ts:12566
HighchartspartialOptionsJSON options; formatters often functionstypes · stronghighcharts/highcharts.d.ts:93407
Plotly.jsnativelayoutJSON traces + layout (figure JSON)types · strongplot-schema.json#layout.layoutAttributes.
Nivonone—React props with functionsabsence · absence—
Victoryunknown—conflict · unknown—
visxnone—absence · absence—
ApexChartspartialApexOptionsJSON-like; formatters are functionstypes · strongapexcharts/types/apexcharts.d.ts:1449
Tremor (npm)none—absence · absence—
Observable Plotnone—JS function callsabsence · absence—
Vega-LitenativeTopLevelSpeccanonical JSON grammartypes · strongvega-lite/build/spec/index.d.ts:43
AG ChartspartialAgChartOptionstypes · strongag-charts-types/dist/types/src/chartBuilderOptions.d.ts:50
amCharts 5plugin—JSON plugin (plugins/json) serialisationnpm · weak—
Google Chartspartialgrep: optionsJSON options + DataTablegrep · weak@types/google.visualization/index.d.ts:3
uPlotnone—imperative options with functionsabsence · absence—
TradingView Lightweight Chartsnone—absence · absence—
MUI X Chartsnone—absence · absence—
Mermaid (chart-ish diagrams only)none—text DSLabsence · absence—
AntV G2nativeG2SpecJSON spec (or chainable API)types · strong@antv/g2/lib/spec/index.d.ts:4