Build a Pie Chart
Use pie charts to show proportions of a whole.
The basic building blocks for a pie chart are as follows:
Mark type: |
Pie |
Color: |
Dimension |
Angle: |
Measure |
To create a pie chart view that shows how different product categories contribute to total sales, follow these steps:
- Connect to the Sample - Superstore data source.
- Drag the Sales measure to Columns and drag the Sub-Category dimension to Rows.
- Click Show Me on the toolbar, then select the pie chart type. Pie charts require at least one or more dimensions and one or two measures. Aggregate fields, such as Profit Ratio, don't contribute to those requirements.
- Add labels by dragging the Sub-Category dimension from the Data pane to Label on the Marks card.
Tableau aggregates the Sales measure as a sum. By default, Tableau displays a bar chart.
The result is a rather small pie. To make the chart bigger, navigate to the Fit menu in the toolbar and select Entire View.
If you don't see labels, press Ctrl + Shift + B (press ñ + z + B on a Mac) to make sure most of the individual labels are visible.
You can make a pie chart interactive in a dashboard. For more information, see Actions and Dashboards.
Note: Pie charts can also be used as a mark type in a visualization. For more information, see Pie mark.
Check your work! Watch steps 1-4: