# Pie Chart

## About **pie charts**

A pie chart divides one categorical variable into slices that represent parts of a whole

<figure><img src="/files/1MfQ21yq76hjwIMqNkDP" alt="" width="513"><figcaption><p>Example of a pie chart in Microreact</p></figcaption></figure>

## **Creating your pie chart**

| <p><strong>Step 1</strong>: Select a category from your metadata table to create the pie chart, with slices representing the proportion of each unique element in that column.</p><p>Tooltips will display the count and percentage of each category when hovering over individual slices.</p>                                                                                                                                                                                                                                                                                                                                                                                            | ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXc-ZKG3vB7Xpzmzx76s2NAJ2gE8UA5YAFRyUc5H98d1oJ612zQkYnZQjKKoxVE5rp5b99gcPXzEHAk52nkm56FPwQLhz-0pbZCO6Pfoewm3NTrwOsADh7d0SF24tB_vLjBVDjZPCsxc9msCFEYxBlsOu-rl?key=eWiUFSXUJbPgi8wi6uipZA) |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><strong>Step 2</strong>: Select how you would like the size of your pie slices to be represented and whether you would like to omit null values from the visual.</p><ul><li>Representing your pie slices by radius means the larger slices extend further outward from the centre, visually emphasising the relative size of each data point more dramatically than a traditional pie chart</li><li>Representing your pie slices by area means the area of each slice is proportional to the category's value relative to the total data set</li></ul><p><em>Note</em>: rows with null values for your pie chart category will still be present in other panels of your dashboard.</p> | ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXdOCcs-qss5CTlYq0FuA_MwccnOJEVSNBEuPMyyQaeLz6Ig9ScEbK-nFKH9GlvL3UXVn0wh-e669eQV5WhlmwQRyFUjLEydzkm6KWItqHat4Dr76n1T8ks1gsgVqgfa2eFh2Ovc66tRYbNLuodES3OMJaCl?key=eWiUFSXUJbPgi8wi6uipZA) |
| <p><strong>Step 3</strong>: Indicate whether you want the slice labels to appear inside each slice, outside the pie chart or turn labels off.</p><p>You can also select whether to display percentages as part of the labels. Even if you turn off the percentage labels, you will still see percent values in the tooltips.</p><p><br>Users can also set a minimum count to hide labels from slices that are very small while still visualising labels for primary slices.</p><p><br></p>                                                                                                                                                                                                | ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXfr9287MXFctqatEzBMyoiWUhY97SQK8Ar-dNVHWhloSElI9NUcE8tGwLKRMGMLNiglwfmpnITlEb1J_PpJety9TksTj6L7xqk8Khhlx4EjNXYPxSde73-ef1CWtcaz5ucBb0zpBsNcX-kfokEmKs5YJLk?key=eWiUFSXUJbPgi8wi6uipZA)  |

\\


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.microreact.org/instructions/adding-and-editing-panels/charts-panel/pie-chart.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
