# Pie Chart

A **Pie Chart** is a circular statistical graphic that displays data as slices of a whole, representing **proportional relationships** between categories. It is an intuitive way to compare parts of a dataset, showing how each category contributes to the total. Pie charts are commonly used in **market share analysis, budget breakdowns, and survey responses** to provide a quick visual representation of proportions.

### **When to Use a Pie Chart**

* **Comparing parts of a whole:** Ideal when each data point represents a fraction of a total (e.g., sales distribution by product category).
* **Showing relative proportions:** Helps visualize percentages or contributions of different groups.
* **Highlighting key contributors:** Useful when identifying dominant categories in a dataset.
* **Limited number of categories:** Works best when displaying fewer than **six categories** to ensure readability.

### **How to Set Up a Pie Chart in Infinity**

#### **1. Selecting the Chart Type**

1. Navigate to the **Chart Type** dropdown in the chart editor.
2. Select **"Pie"** from the available chart options.

<figure><img src="/files/qLLa0z6V0HRRHAhFe5ko" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/Rb5CPbOdWpaOstmi8QY0" alt=""><figcaption></figcaption></figure>

#### **2. Configuring Data Series**

1. Click **Add Data Series** and define the required fields:
   * **Category (Slices):** The variable that represents different sections of the pie (e.g., product type, department).
   * **Measures (Size of Slices):** The metric that determines the proportion of each category (e.g., revenue, percentage of total).
2. The chart will automatically distribute the slices based on their proportional values.

#### **3. Customizing the Pie Chart**

* Use the **Advanced Editor** to refine chart background, tooltips, and labels.

<figure><img src="/files/ws66iqbD6b0jP8CbMSLR" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/PAXRyBmy161EAX5sk6bS" alt=""><figcaption></figcaption></figure>

### **Similarity to Donut and 3D Pie Charts**

The **Pie Chart** setup and customization options are the same as for **Donut Charts** and **3D Pie Charts**. The **Donut Chart** is essentially a **Pie Chart with a hollow center**, making it useful for emphasizing inner content, such as total values. A **3D Pie Chart** adds a **three-dimensional effect** for aesthetic appeal but follows the same fundamental setup. Since the core functionality remains unchanged, we will not be covering **Donut or 3D Pie Charts separately**, as all **customization and configuration options apply across these formats**.

###


---

# 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.getinfinity.app/user-guide/comprehensive-user-guide/2.-charts/featured-chart-examples/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.
