EXCEL Add chart function

The EXCEL Add chart function creates a chart from a data range.

Help CentreBuilding Processes

This article describes the RPA Excel functionality to create a chart from a data range.

For a full list of available functions, please read EXCEL functions.


Description

The EXCEL Add chart function creates a chart from a data range. The chart is placed below the source data. Supports 7 chart types: line, bar, column, pie, area, scatter, and doughnut.


Setting it up

To use the EXCEL Add chart function, follow these instructions:

{{popups:rpas/add:action=excel-add-chart}}

Once on a process map:

  1. Navigate to the process where you would like to add the EXCEL Add chart function
  2. Click on the green button's drop-down (right side of the green button labelled "Process")
  3. On the menu that appears, click on the "+ Activity" item
  4. From here you can select the EXCEL Add chart option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
File pathYesTextFull path to the Excel file.
SheetYesTextName of the sheet.
Data rangeYesTextData range for the chart (e.g. A1:D10).
Chart typeNoSelectlineChart type: line, bar, column, pie, area, scatter, doughnut.
Chart nameNoTextName for the chart.
WidthNoNumber355Chart width in pixels.
HeightNoNumber211Chart height in pixels.

Output variables

This action does not produce any output variables.


Errors

ErrorDescription
File not openThe Excel file must be open.
Sheet not foundThe specified sheet does not exist.
Invalid rangeThe data range is not valid.
Invalid chart typeThe specified chart type is not supported.

Tips

  • The chart is placed below the source data automatically.
  • Use descriptive column headers – they become chart labels and legends.
  • Pie and doughnut charts work best with a single data series.

Related functions

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.