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.

chevron-rightcreate a {bar|pie} chart wherehashtag

What does it do?

Begins a chart definition block.

Where does it go?

This phrase should be written on a new line.

Is it required?

✅ Yes — This phrase is required.

Does it require data?

✅ Yes — Replace the adjective with bar or pie.

Example

create a bar chart where
chevron-rightthe categories are chashtag

What does it do?

Provides category labels for the chart.

Where does it go?

Indented under create a {bar|pie} chart where.

Is it required?

✅ Yes — This phrase is required.

Does it require data?

✅ Yes — Replace c with a list of texts or a reference to table data.

Example

the categories are the table's cities
chevron-rightthe values are vhashtag

What does it do?

Provides numeric values corresponding to each category.

Where does it go?

Indented under create a {bar|pie} chart where.

Is it required?

✅ Yes — This phrase is required.

Does it require data?

✅ Yes — Replace v with a list of numbers or reference to table data.

Example

the values are the table's populations
chevron-rightthe title is "chart-title"hashtag

What does it do?

Sets the chart title.

Where does it go?

Indented under create a {bar|pie} chart where.

Is it required?

✅ Yes — This phrase is required.

Does it require data?

✅ Yes — Replace chart-title with a text string.

Example

the title is "Population of Cities"
chevron-rightthe x label is "x-label"hashtag

What does it do?

Labels the x-axis.

Where does it go?

Indented under create a bar chart where.

Is it required?

❌ No — This phrase is optional.

Does it require data?

✅ Yes — Replace x-label with a text string to label the x-axis. The default is Categories.

Example

chevron-rightthe y label is "y-label"hashtag

What does it do?

Labels the y-axis.

Where does it go?

Indented under create a bar chart where.

Is it required?

❌ No — This phrase is optional.

Does it require data?

✅ Yes — Replace y-label with a text string to label the y-axis. The default is Values.

Example

chevron-rightthe orientation is "{horizontal|vertical}"hashtag

What does it do?

Sets bar chart orientation.

Where does it go?

Indented under create a bar chart where.

Is it required?

❌ No — This phrase is optional.

Does it require data?

✅ Yes — Set the text as either horizontal or vertical. The default is vertical.

Example

chevron-rightthe legend is "{enabled|disabled}"hashtag

What does it do?

Displays a legend with category names.

Where does it go?

Indented under create a pie chart where.

Is it required?

❌ No — This phrase is optional.

Does it require data?

✅ Yes — Set the text as either enabled or disabled. The default is disabled.

Example

chevron-rightthe color palette is "color-palette"hashtag

What does it do?

Sets the color scheme for the chart.

Where does it go?

Indented under create a {bar|pie} chart where.

Is it required?

❌ No — This phrase is optional.

Does it require data?

✅ Yes — Replace color-palette with one of kognitos,lavender, rocket, or any HTML named colorarrow-up-right (e.g., red, blue, green, purple, orange, etc.). The default is kognitos.

Example

chevron-rightthe style is "chart-style"hashtag

What does it do?

Sets the seaborn chart style.

Where does it go?

Indented under create a {bar|pie} chart where.

Is it required?

❌ No — This phrase is optional.

Does it require data?

✅ Yes — Replace chart-style with one of white, darkgrid, whitegrid, dark, ticks. The default is white.

Example

chevron-rightthe font is "font-name"hashtag

What does it do?

Sets the font family for all text.

Where does it go?

Indented under create a {bar|pie} chart where.

Is it required?

❌ No — This phrase is optional.

Does it require data?

✅ Yes — Replace font-name with a font name. The default is Raleway Light.

Example

Examples

1. Bar Chart with Direct Values

2. Pie Chart with Legend

3. Horizontal Bar Chart from Table Data

4. Pie Chart with color palette

Last updated

Was this helpful?