Skip to content
  • There are no suggestions because the search field is empty.

Create pie and donut charts

Pie and donut charts show how the parts of something add up to the whole, such as the share of participants in each group. Use them when an approximate part-to-whole picture is enough, and keep the number of slices small: two to four is best, and no more than five.

Before you start:

  • Ensure your UpMetrics login is assigned an Org Admin or Editor role.
  • Confirm the data table you want to use is in Collect and ready for Advanced Analytics. For details, see Prepare your data for Advanced Analytics.

Steps

Note: Rename the metric in step 4 before you share the chart. Otherwise, the pop-up that appears when viewers hover over a slice shows the raw metric name, such as COUNT_DISTINCT(fellow_id).

  1. From the Charts tab or your dashboard, click + in the upper right corner and select Chart. The Create a new chart screen displays.
  2. Select your data table from the Choose a data table drop-down list and the Pie Chart chart type, then click Create new chart. The chart builder displays.
  3. Enter a descriptive name for the chart at the top of the window, then drag a column from the Columns list to the Dimensions field to choose how to group your data into slices.
  4. Drag a column from the Columns list to the Metric field to choose what you're measuring. In the My metric dialog box, select a calculation from the aggregate drop-down list (it defaults to COUNT_DISTINCT), then use the pencil icon at the top of the dialog box to rename the metric to something easier to read. Click Save.
    The metric dialog box with fellow_id and the COUNT aggregate selected and the metric renamed to Participants with the pencil icon, with gender in the Dimensions field.
  5. Click Create chart. A simple pie chart displays in the preview area.
  6. (Optional) To turn the pie chart into a donut chart, click the Customize tab and select the Donut check box.
    The Customize tab with the Donut check box selected and the Outer Radius and Inner Radius sliders, and a donut chart of participants by gender in the preview.
  7. (Optional) Adjust the color scheme, labels, and other options on the Customize tab (see Customization options below). Your changes display in the preview as you make them.
  8. Click Save. In the Save chart dialog box, enter or edit the name in the Chart name field, select a dashboard from the Add to dashboard drop-down list or enter a name for a new one (optional), then click Save or Save & go to dashboard.

Customization options

Use these options on the Customize tab to make your pie or donut chart easier to read.

Option What it does
Color Scheme Sets the colors of the slices. Choose colors that are easy to tell apart, including for colorblind viewers.
Label Type Sets what information the slice labels show and how they look.
Legend Shows or hides a legend and sets where it appears. If the slice labels already name each category, hide the legend so the chart doesn't repeat the same information.
Donut Turns the pie chart into a donut chart.

The Customize tab includes other formatting options as well, such as Outer Radius to change the size of the chart and Inner Radius to change the size of the hole in a donut chart.

Donut and pie chart best practices

Keep these practices in mind when you design pie and donut charts:

  • Use them only to show parts of a whole. The slices must add up to 100%.
  • Use them sparingly, and consider whether a bar chart would be a better choice.
  • Limit the chart to two to four slices, and no more than five.
  • Use colors that are easy to tell apart, and consider colorblind viewers.
  • Filter out missing data, or label it clearly.
  • Relabel metrics so viewers know exactly what they're looking at.

Needs improvement: The metric isn't relabeled, the slice labels and legend repeat the same information, the pop-up is hard to read, and the colors are hard to tell apart.

A pie chart with similar dark blue slices, a legend that repeats the slice labels, and a tooltip showing the raw metric name.

Improved: The same data with the metric relabeled as Fellows, no legend, more space in the pop-up, and more distinct colors.

A pie chart titled Fellows by Gender with distinct slice colors, no legend, and a tooltip that reads Fellows 8, 33.33%.

Related articles