create_chart_from_spec
Create advanced chart types (histogram, bubble, candlestick, waterfall, treemap, org chart) by providing a ChartSpec object to embed in the sheet.
Instructions
Create an embedded chart from a full Sheets API ChartSpec object.
Use this for histogram, scorecard, bubble, candlestick, waterfall, treemap,
org, or other chart specs not covered by create_chart.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"spreadsheet_id": "<spreadsheet_id>",
"sheet": "<sheet>",
"chart_spec": "<chart_spec>"
},
"name": "create_chart_from_spec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sheet | Yes | ||
| chart_spec | Yes | ||
| anchor_cell | No | E2 | |
| width_pixels | No | ||
| height_pixels | No | ||
| spreadsheet_id | Yes | ||
| offset_x_pixels | No | ||
| offset_y_pixels | No |