Features · export

Data export (CSV/XLSX)

native

Download underlying data

Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.interaction.export.

toCSV writes rows, number arrays, or columns.

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

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
  },
  "interaction": {
    "export": [
      "png",
      "svg",
      "csv"
    ]
  }
}

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: export.csv.md.

LibraryStatusOptionVerificationSource
Chart.jsnone—absence · absence—
Rechartsnone—absence · absence—
Apache EChartsmanualseries.type=customdataViewmechanism · weakecharts/types/dist/shared.d.ts:11176
Highchartsplugingrep: downloadCSVexport-data modulegrep · weakhighcharts/highcharts.src.d.ts:10965
Plotly.jsnone—absence · absence—
Nivonone—absence · absence—
Victorynone—absence · absence—
visxnone—absence · absence—
ApexChartsnativegrep: exportToCSVgrep · weakapexcharts/types/apexcharts.d.ts:284
Tremor (npm)none—absence · absence—
Observable Plotnone—absence · absence—
Vega-Liteunknown—conflict · unknown—
AG Chartsnone—absence · absence—
amCharts 5plugingrep: xlsxexporting plugin CSV/XLSX/JSONgrep · weak@amcharts/amcharts5/index.d.ts:67
Google Chartsunknown—conflict · unknown—
uPlotnone—absence · absence—
TradingView Lightweight Chartsnone—absence · absence—
MUI X Chartsnone—absence · absence—
Mermaid (chart-ish diagrams only)none—absence · absence—
AntV G2unknown—conflict · unknown—