Add a chart
add_chartCreate a chart from a data range in Google Sheets to visualize data. The first column is the X axis, and each following column is a series.
Instructions
Create a chart from a data range. The first column is the X axis/labels; each following column is a series. Use a header row for series names.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| account | No | Google account to use: an email or unique part of one (e.g. "acme.com"). Default: the account that can open the spreadsheet, else the default account. | |
| stacked | No | ||
| chart_type | No | COLUMN | |
| data_range | Yes | e.g. "Sales!A1:C13" | |
| has_header | No | ||
| anchor_cell | No | Where to place the chart's top-left, e.g. "Sales!F2" (default: right of the data) | |
| spreadsheet | Yes | Google Sheets link or spreadsheet ID. The name of a spreadsheet used with Sheets MCP before also works |