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
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Range | String | Yes | Data with a header row: categories in the first column, one series per further column. | |
| Chart type | String | No | column | column (vertical bars), bar (horizontal bars), line, or pie (the first series only). |
| Title | String | No | Chart title; none when empty. | |
| Position | String | No | Top-left cell of the chart; two columns right of the data when empty. | |
| Width | Number | No | 8 | Width in columns. |
| Height | Number | No | 15 | Height in rows. |
| Legend | String | No | right | Where the legend goes. |
| Sheet | String | No | Sheet with the data; active sheet when empty. | |
| Destination sheet | String | No | Sheet to put the chart on; the data sheet when empty; created when it does not exist. | |
| Session | String | No | excel | Workbook session. |
Outputs
| Output | Type | What it is |
|---|---|---|
| range | String | Cells the chart covers, e.g. H2:O17. |