GET /system/charts
List all charts on a given sheet. If you omit thesheet query parameter, GridOS returns charts for the currently active sheet.
Query Parameters
The sheet whose charts you want to retrieve. Defaults to the active sheet when omitted.
Response
All chart objects on the requested sheet. Each object includes the chart’s
id, title, chart_type, data_range, anchor_cell, width, height, and orientation.Example
POST /system/charts
Create a new chart overlay on a sheet. You must supply adata_range; all other fields have sensible defaults.
Request
The rectangular cell range that contains the chart data, in A1 notation (e.g.
"A1:B6"). The range should include both labels and numeric values.The cell where the top-left corner of the chart overlay is pinned. Defaults to
"F2". Choose an empty area so the chart does not obscure your data.The chart type. Accepted values:
"bar", "line", "pie". Defaults to "bar".A display title rendered above the chart. Defaults to an empty string (no title shown).
Chart width in pixels. Defaults to
400.Chart height in pixels. Defaults to
280.Controls how the data range is read.
"columns" means the first column contains labels and subsequent columns are series (typical). "rows" means the first row contains labels. Defaults to "columns".The sheet on which to create the chart. Defaults to the active sheet when omitted.
Response
"Success" when the chart was created.The full chart object including the system-assigned
id and all resolved field values.Errors
| Status | Meaning |
|---|---|
400 | The chart could not be created (e.g. invalid data range or chart type). |
Example
Chart IDs are assigned by the server at creation time. Store the returned
id if you need to update or delete the chart later.PATCH /system/charts/
Update one or more properties of an existing chart. Send only the fields you want to change — all other fields remain as they are.Path Parameters
The unique identifier of the chart to update, as returned by
POST /system/charts or GET /system/charts.Request
All body fields are optional. Only the fields you include are applied.Move the chart to a new anchor cell.
Change the data range the chart reads from.
Change the chart type. Accepted values:
"bar", "line", "pie".Update the chart title.
New width in pixels.
New height in pixels.
Change between
"columns" and "rows" orientation.The sheet on which the chart lives. Required when the chart is not on the active sheet.
Response
"Success" when the chart was updated.The full updated chart object.
Errors
| Status | Meaning |
|---|---|
404 | No chart with the given chart_id was found on the specified (or active) sheet. |
400 | The update payload is invalid (e.g. unrecognised chart type). |
Example
DELETE /system/charts/
Permanently remove a chart overlay from a sheet. The underlying cell data referenced by the chart is not affected.Path Parameters
The unique identifier of the chart to delete.
Query Parameters
The sheet on which to look for the chart. Defaults to the active sheet when omitted.
Response
"Success" when the chart was deleted.Errors
| Status | Meaning |
|---|---|
404 | No chart with the given chart_id was found on the specified (or active) sheet. |