This article shows how to sort the Tableau Pie chart with an example. The desktop supports multiple sorting methods, such as the Toolbar and Marks Shelf, and we cover all of them on this page.
How to Sort Tableau Pie Chart?
To sort, please select the English Country Region Name and Order Quantity and click the Pie Chart from the Show Me Window. Next, drag the English Country Region Name and Sales Amount to the label section to display the data labels.
The Tableau Desktop toolbar has two options or buttons to sort the dimensions based on the measure values. For instance, the below-marked button will sort the country in descending order based on the orders.
Please visit the Charts and Pie Chart articles in Tableau to understand the DataSource and DataSet of this chart report.
This Tableau toolbar button will sort the Pie Chart country region name in ascending order based on the order quantity.
Although the above toolbar options are quick and easy, the magic happens in the Marks. Here, you can perform advanced sorting. For example, as you can see from the below screenshot, by choosing Clear Sort, we can bring the pie chart to the original.
If you select the Sort option, the following window will open with a lot of options to select. By default, it sorts the data in ascending order and considers the Data Source order primary.
Sort By Alphabetic: Most of the time, database data is stored in alphabetical format. If that is the case, then there is no point in selecting it. If not, it sorts countries alphabetically (Australia first and the United States last).
Sort By Field: It allows you to choose the column name for the Tableau Pie Chart sort field. Here, we have chosen the Order Quantity Measure Field as the Sorting field, and Descending is the Sort order.
Manual: Use the up and down arrow to adjust the Pie chart slices as needed. Close the window to see the Final output.