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
string
The sheet whose charts you want to retrieve. Defaults to the active sheet when omitted.
Response
array of objects
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
string
required
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.string
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.string
The chart type. Accepted values:
"bar", "line", "pie". Defaults to "bar".string
A display title rendered above the chart. Defaults to an empty string (no title shown).
integer
Chart width in pixels. Defaults to
400.integer
Chart height in pixels. Defaults to
280.string
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".string
The sheet on which to create the chart. Defaults to the active sheet when omitted.
Response
string
"Success" when the chart was created.object
The full chart object including the system-assigned
id and all resolved field values.Errors
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
string
required
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.string
Move the chart to a new anchor cell.
string
Change the data range the chart reads from.
string
Change the chart type. Accepted values:
"bar", "line", "pie".string
Update the chart title.
integer
New width in pixels.
integer
New height in pixels.
string
Change between
"columns" and "rows" orientation.string
The sheet on which the chart lives. Required when the chart is not on the active sheet.
Response
string
"Success" when the chart was updated.object
The full updated chart object.
Errors
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
string
required
The unique identifier of the chart to delete.
Query Parameters
string
The sheet on which to look for the chart. Defaults to the active sheet when omitted.
Response
string
"Success" when the chart was deleted.