# Pie Chart

A Pie Chart is a type of graph that displays data in a circular graph. It gives you a snapshot of how a group is broken down into smaller pieces. Because the pieces of a Pie chart are proportional to the fraction of the whole in each category. In order to make a Pie chart, you must have a list of categorical variables (descriptions of your categories, like ‘cell type’) as well as numeric variables (e.g., cell numbers). In Partek Flow, the default numeric variable is the cell numbers. Therefore, the Pie chart indicates the fraction of the whole cell numbers in each category.

To make a Pie chart, open a new Data Viewer session in Flow (Figure 1).

![](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-e62254a9a9b20c418ea2e11453194ba4025aa016%2FScreenshot%202022-12-21%20at%2015.44.35.png?alt=media)

Figure 1. New Data Viewer session in Flow.

Select *New plot > Pie chart* from the menu on the left. Then select any data node to create a new empty Pie chart (Figure 2).

![](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-6fbbcebcc4eba33aa69c8f808e70e7ab4fb48e4c%2FScreenshot%202022-12-21%20at%2015.45.48.png?alt=media)

Figure 2. Create a new empty Pie chart in Data Viewer.

Categorical attributes that can be used for the Pie chart would display after any data node from the Data card on the left side of the Data Viewer has been clicked.

Simply select the attribute, in this case cell type, to generate a new Pie chart (Figure 3).

![](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-94c7570b80cec5a02ca991a1462c31f08cf28648%2FScreenshot%202022-12-21%20at%2016.07.21.png?alt=media)

Figure 3. Add attribute to Pie chart.

A Pie chart that demonstrates the fraction of the whole cell numbers in each sample has been created (Figure 4).

![](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-6202f5d332968ae7f85a38c79d29ddd969e8cf2a%2FScreenshot%202022-12-21%20at%2015.53.02.png?alt=media)

Figure 4. Example Pie chart with cell types.

The specific cell number in this category and its percentage of total would appear when a cursor is moved over on it. For instance, NK cells include 16,434 cells which accounts for 2866% of the total cells in the study (Figure 5).

![](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-333fd23d03ce19cb58077717dd58cb6b4adb2d4e%2FScreenshot%202022-12-21%20at%2016.08.20.png?alt=media)

Figure 5. The mouseover example Pie chart.

Accessing the *Configure >* *Axes* menu you can easily split the plot by any categorical attribute available, in this case the Pie chart was split by age (Figure 6)

![](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-401f88414cf5e9b4bc7791ab4c02f3a967f3d257%2FScreenshot%202022-12-21%20at%2015.53.36.png?alt=media)

Figure 6. Configuration and splitted example of Pie chart.

If more than one categorical attribute were added to the data, Pie chart would have two different modes - **Pointer mode** and **Zoom mode** (Figure 7). The default is **Pointer mode**, the **Zoom mode** is accessed by clicking on the zoom icon <img src="https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-4049cdd0d6dce492324e5adc886ccd0266d83857%2FScreenshot%202022-12-21%20at%2016.22.03.png?alt=media" alt="" data-size="line"> and subsequently clicking on any slice of interest. In this case Figure 7 shows the distribution of NK cells between male and female patients in the supercentenarian panel.

![](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-9e1534eea2c534465bbd18baab9d84dee7ce1d7a%2FScreenshot%202022-12-21%20at%2016.24.25.png?alt=media) ![](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-9bf2ca941c34bd3b0a1028f3ba37d6bc06099548%2FScreenshot%202022-12-21%20at%2016.25.01.png?alt=media)

Figure 7. Different modes of Pie Chart.

Once you are pleased with the appearance of the Pie plot, push **Export image** button to save it to the local machine or click Save button to save the Data Viewer. The resulting dialog (Figure 8) controls the **Format**, **Size** and **Resolution** of the image file. The image will be saved in your favorite format (*.svg*, *.png* and .*pdf*).

![](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-de0abaeb29d4718f39178c907616d1582817e64a%2FFig%208.png?alt=media)

Figure 8. Save image dialog (default settings)

## Additional Assistance

If you need additional assistance, please visit [our support page](https://www.illumina.com/company/contact-us.html#/other/technical-support) to submit a help ticket or find phone numbers for regional support.
