HOW TO

Create percentage labels for pie charts

Last Published: June 16, 2021

Summary

When using pie charts to symbolize data, labels with percentage values can be used to represent the percentage of each sector of the pie chart. Percentage labels are useful in identifying data patterns and they are linked to the percentage data in the attribute table. When edits are made to the percentage values in the attribute table, the labels are updated automatically.

This article provides instructions to create percentage labels for pie charts and it is suitable only when processing small data sets.

Procedure

Note:
Skip Step 1 if the percentage values for the pie chart have been calculated.
  1. Calculate the percentage of the data for the pie charts.
    1. In ArcMap, right-click the layer in the Table Of Contents, and click Open Attribute Table.
    2. In the Table window, click the Table Options drop-down arrow, and select Add Field.
The Table Options icon.
  1. In the Add Field dialog box, type the field name, and select Float for the field type.
The Add Field dialog.
  1. Set other Field Properties as required, and click OK.
  2. In the attribute table, right-click the field header of the new field, and click Field Calculator.
  3. Select VB Script for Parser.
  4. Type the following expression in the code block box. Replace Field_1, Field_2, and Field_3 with the actual field names.
 ([Field_1] / ([Field_1] + [Field_2] + [Field_3])) * 100
The expression to calculate field percentages in the codeblock box.
  1. Create the pie charts for the calculated percentage values. For steps, refer to ArcMap: Using pie charts.
  2. Create percentage labels for the first sectors of the pie charts.
    1. In the Table Of Contents, right-click the layer and click Properties > Labels.
    2. Enable the Label features in this layer check box.
    3. Click the Expression button.
    4. In the Label Expression dialog box, type the following expression in the Expression box. Replace Field_1 with the actual field name.
[Field_1]&"%"
  1. Click OK to close the Label Expression dialog box and display the Layer Properties dialog box.
  2. Click the Placement Properties button in the Other Properties section to set other properties,.
  3. Click Apply and OK to display the labels for the first sectors of the pie charts.
The Layer Properties dialog box.
The Label Expression dialog box.
  1. Convert the percentage labels to annotation classes to allow the positions of the percentage values to be adjusted. For steps, refer to ArcMap: Converting labels to annotation features. After converting the labels, a new annotation feature class for the field is automatically added.
Note:
The ability to convert labels to annotation features is limited to ArcGIS Desktop Standard and Advanced users only.

To edit the annotation feature class position:

  1. Right-click the annotation feature class in Table Of Contents, and click Edit features > Start Editing.
  2. On the map, select the first annotation class to be repositioned.
  3. Hold and drag the annotation class to move the annotation.
The percentage labels converted to annotation classes and moved beside the pie chart sector accordingly.
  1. Repeat Steps 3 and 4 for the remaining percentage fields of the attribute table.
The pie charts with the percentage symbology.

Article ID: 000014788

Software:
  • ArcMap

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options