GOOGLE WORKSPACE Create chart function

The GOOGLE WORKSPACE Create chart function in RPA.

Help CentreFunctions & Formulas

This article describes the RPA Google Workspace connector function to create an embedded chart.

For a full list of available functions, please read GOOGLE WORKSPACE functions.


Description

The Create chart function creates an embedded chart in a Google Sheets spreadsheet. Supports bar, line, pie, area, scatter, and other chart types based on data in a specified range.


Input parameters

ParameterRequiredTypeDefaultDescription
ConnectorYesSelect-Select the Google Workspace connector to use
Spreadsheet IDYesText-Google Sheets spreadsheet ID
Sheet IDYesText-Numeric sheet ID
Data rangeYesText-A1 notation range of the chart data (e.g. A1:C10)
Chart typeYesSelectBARChart type: BAR, LINE, PIE, AREA, SCATTER, COLUMN, COMBO
TitleNoText-Chart title
PositionNoText-JSON object with anchorCell, offsetX, and offsetY
VariableYesText-Variable to store the result

Output variables

VariableTypeDescription
VariableObjectObject containing chartId

Errors

  • Sheet not found – no sheet exists with the given ID
  • Invalid data range – the data range is empty or malformed

Tips

  • The first row of the data range is typically used as category labels
  • Use the Batch update spreadsheet function for more advanced chart customisation

Related functions

  • Read sheet range – Read data for chart creation
  • Batch update spreadsheet – Advanced chart configuration

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.