API & MCP

Everything a person can do on CSV/Excel Chart Studio, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

CSV/Excel Chart Studio

Upload a CSV, TSV or XLSX file (up to 20 MB) or paste a table. The studio detects numbers, dates and categories, lets you pick the chart type, X/Y columns, a grouping column, aggregation (sum, average, count …), sorting and top-N, and returns an accessible SVG chart with SVG and PNG downloads plus the data table behind it.

Inputs of CSV/Excel Chart Studio
FieldTypeDefaultDescription
filefile—CSV, TSV or Excel file. CSV/TSV/TXT or .xlsx, max 20 MB. The format is detected from the content. Old .xls files: save as .xlsx first.
datatextarea—Or paste data. Comma-, semicolon-, tab- or pipe-separated, first row = headers. Used when no file is uploaded.
sheettext—Excel sheet. Sheet name or number; default: the first sheet.
hasHeaderbooleantrueFirst row contains column names
chartTypeselect (auto, line, area, bar, stacked, scatter, pie, donut, histogram)"auto"Chart type
xtext—X column (categories or dates). Column name, letter (A, B …) or number. Empty: first date or text column.
ytext—Y columns (values). One or more column names, comma-separated. Empty: the numeric columns. No numeric column: rows are counted.
grouptext—Group / series column. Optional: split the first Y column into one series per value of this column (e.g. Region) – ideal for stacked bars.
aggregationselect (auto, sum, avg, count, min, max, median, none)"auto"Combine repeated X values
sortselect (auto, none, x, value-desc, value-asc)"auto"Sort
topNinteger0Top N categories. 0 = all (very long category lists are cut automatically).
otherBucketbooleantrueCombine the rest into "Other"
binsinteger0Histogram bins. 0 = automatic (Sturges’ rule).
titletext—Chart title
pngbooleantrueAlso create a PNG image

Example request

Revenue by month, stacked by region

curl -X POST https://csvexcelchartstudio.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"data":"Month,Region,Revenue,Orders\n2026-01,North,12400,310\n2026-01,South,9800,250\n2026-02,North,13900,342\n2026-02,South,10150,262\n2026-03,North,15100,371\n2026-03,South,11800,290\n2026-04,North,14650,355\n2026-04,South,12900,301","chartType":"stacked","x":"Month","y":"Revenue","group":"Region","png":false}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "csv-excel-chart-studio": { "type": "http", "url": "https://csvexcelchartstudio.usefulweb.site/mcp" }
  }
}