Pie charts
A pie chart is useful for comparing proportions. For example, you can use a pie chart to
demonstrate that a greater proportion of Europeans is enrolled in a certain class.
Creating a simple pie chart
- In the Chart Type section, click the Pie
icon.
The canvas updates to display a pie chart template.
- Select a categorical (nominal or ordinal) variable from the Category list. The categories in this variable determine the number of slices in the pie chart.
- Select a statistical summary function for the graphic element. For pie charts, you typically want a count-based statistic or a sum. The result of the statistic determines the size of each slice.
- Click the Save visualization in the project control. Select Create a new asset or Append to existing asset. Provide a Visualization asset name, an optional description, and a chart name.
- Click Apply to save the visualization to the project. The new visualization asset is now available on the Assets tab.
Options
- Category
- Select a categorical (nominal or ordinal) variable that determines the number of slices in the pie chart.
- Summary
- Select a statistical summary function for the graphic element. For pie
charts, you typically want a count-based statistic or a sum. The result of the statistic determines
the size of each slice.Two types of statistical summary functions are available. The distinction is important because it determines whether you need to specify a Value variable.
- Functions that do not require a value variable. Functions that do not require a variable. All count and percentage statistics are in this category. These statistics are available when the Value variable is not defined.
- Functions that do require a value variable. Functions that do require a Value variable. For example, the Mean function requires a variable on which the mean is calculated. These statistics are available when the Value variable is not defined.
- Value
- This field displays when a Summary function that requires a scale variable, is selected. Select a variable to serve as the scale variable.
- Pie type
- The following styles are available.
- Normal
- The pie segments display as normal slices.
- Ring
- The pie segments display as a ring. This style is also known as a doughnut chart.
- Rose
- Unlike the normal pie chart, which uses a common radius, the pie segment sizes vary depending on their value.
- Rose area
- Unlike the normal pie chart, which uses a common radius, the pie segment sizes vary depending on their area.
- Rose ring
- Unlike the normal pie chart, which uses a common radius, the pie segment sizes vary depending on their value and the segments display as a ring.
- Half rose
- Same as Rose, except the chart is represented as one-half of a pie.
- Show value
- When enabled, the pie slice values display in the legend.
- Outer field
- The list provides variables that can be used as the count value of the outer ring.
- Outer label angle
- The value species the location of the outer field variable value on the outer ring.
- Legend orient
- Sets the chart legend orientation. Available options are Horizontal, Vertical, and Vertical bottom.
- Primary title
- The chart title.
- Subtitle
- The chart subtitle.
- Footnote
- The chart footnote.