# 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. 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 at least one categorical variables (descriptions of your categories, like ‘cell type’). You can use multiple categorical variables to make multi-level pie chart in Connected Multiomics, which is also called Sunburst chart, in this case, each centric ring represents one attribute, the innermost circle represents the top level and subsequent rings represent different attributes showing more details of the subgroups.

To make a Pie chart, open a new Data Viewer session, select *New plot > Pie chart* <img src="https://580316046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWMxqQAMFOJtu98OBk9KN%2Fuploads%2Fgit-blob-9a271e6fd614fa9e6bf58ea1c7eb23ff42c5e84d%2Fimage%20(280).png?alt=media" alt="" data-size="line">from the menu on the left control panel. Then select any data node from the analysis pipeline which contains the observations you would like to view the break down of the groups, select the categorical attributes which will contains the groups:

<div align="left"><figure><img src="https://580316046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWMxqQAMFOJtu98OBk9KN%2Fuploads%2Fgit-blob-ffc1360ffdeafc8c116063e44234448adadfb2be%2Fimage%20(282).png?alt=media" alt=""><figcaption></figcaption></figure></div>

You can also choose another categorical attribute to split the pie to multiple pie chart by selecting Content split by drop-down.

<div align="left"><figure><img src="https://580316046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWMxqQAMFOJtu98OBk9KN%2Fuploads%2Fgit-blob-e80c3647325fec2ca0458233c1b82681981729a7%2Fimage%20(284).png?alt=media" alt=""><figcaption></figcaption></figure></div>

The specific cell number in this category and its percentage of total would appear when a cursor is moved over on it.

Accessing the *Configure >* *Axes* menu you can easily split the plot by another categorical attribute available.

<figure><img src="https://580316046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWMxqQAMFOJtu98OBk9KN%2Fuploads%2Fgit-blob-540c42a391e9928d262ea70c66f0942e0a5bb7a4%2Fimage%20(285).png?alt=media" alt=""><figcaption></figcaption></figure>

If more than one categorical attribute were added to the data, Pie chart would have two different modes - **Pointer mode** <img src="https://580316046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWMxqQAMFOJtu98OBk9KN%2Fuploads%2Fgit-blob-a8d5a2fb324d1bcb9f14e3dfccf8c5f89cb3bac6%2Fimage%20(286).png?alt=media" alt="" data-size="line">and **Zoom mode** ![](https://580316046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWMxqQAMFOJtu98OBk9KN%2Fuploads%2Fgit-blob-0fa3432594543c0d2f69daea82ef39036daba0e7%2Fimage%20\(287\).png?alt=media). The default is **Pointer mode**, the **Zoom mode** is accessed by clicking on the zoom icon and subsequently clicking on any slice of interest.

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 controls the **Format**, **Size** and **Resolution** of the image file. The image will be saved in your favorite format (*.svg*, *.png* and .*pdf*).
