Create Chart
Generates a bar or pie chart.
Overview
This procedure creates categorical data visualizations. Bar charts display categories along one axis with corresponding values, and can be oriented horizontally or vertically. Pie charts show proportional relationships as slices of a circle. Legends are supported only for pie charts.
Syntax
Below is a line-by-line overview of the automation syntax. Expand each line to learn more.
Examples
1. Bar Chart with Direct Values
create a bar chart where
the categories are ["New York", "Los Angeles", "Chicago", "Houston"]
the values are [8419000, 3980000, 2716000, 2328000]
the title is "Population of Major Cities"
the x label is "Cities"
the y label is "Population"
the style is "white"
2. Pie Chart with Legend
create a pie chart where
the categories are ["Desktop", "Mobile", "Tablet"]
the values are [45.2, 35.8, 19.0]
the title is "Traffic Sources"
the legend is "enabled"
the color palette is "blue"
3. Horizontal Bar Chart from Table Data
create a bar chart where
the categories are the table's departments
the values are the table's budgets
the title is "Department Budgets"
the orientation is "horizontal"
the x label is "Budget ($)"
the y label is "Department"
4. Pie Chart with color palette
create a pie chart where
the categories are ["Marketing", "Sales", "Support", "Engineering"]
the values are [30, 25, 20, 25]
the title is "Team Distribution"
the legend is "enabled"
the color palette is "orange"
the style is "white"
Last updated
Was this helpful?