Skip to main content

Create chart

Add a column, bar, line or pie chart of a range: the first column gives the categories, the header row the series names and each further column one series.

Command in the Excel toolkit · id ooa.excel/create_chart · 10 inputs (1 required), 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
RangeStringYesData with a header row: categories in the first column, one series per further column.
Chart typeStringNocolumncolumn (vertical bars), bar (horizontal bars), line, or pie (the first series only).
TitleStringNoChart title; none when empty.
PositionStringNoTop-left cell of the chart; two columns right of the data when empty.
WidthNumberNo8Width in columns.
HeightNumberNo15Height in rows.
LegendStringNorightWhere the legend goes.
SheetStringNoSheet with the data; active sheet when empty.
Destination sheetStringNoSheet to put the chart on; the data sheet when empty; created when it does not exist.
SessionStringNoexcelWorkbook session.

Outputs​

OutputTypeWhat it is
rangeStringCells the chart covers, e.g. H2:O17.