# Create a Pie and Donut chart (Financial Statements)

The Pie and Donut charts display the percentage share of several variables in the shape of a pie. As their names suggest, the Pie chart is a whole circle and the Donut chart has a whole in the middle. These charts work nicely with the Levels feature, as shown in the examples below, and look great when added as widgets on a dashboard. You do not need to display your data as a percentage in the grid first, as Phocas automatically calculates the percentages when you create the charts. The size of each segment is proportionate to the percentage value.

## Create a Pie chart to visualize the revenue of each country <a href="#createapieordonutchart-createapiecharttovisualizetherevenueofeachcountry" id="createapieordonutchart-createapiecharttovisualizetherevenueofeachcountry"></a>

1. Add the **Country** dimension as a level in the grid.
2. Expand the Revenue row and select the country rows.
3. Open the chart pane, select the Pie chart type, and customize the default Pie chart to suit your needs.

   <figure><img src="/files/5tJUZRjWzdikyTd0IH34" alt="image-20240118-210513.png" width="795"><figcaption></figcaption></figure>
4. [Add the chart to a dashboard](/financial-statements/using-statements/add-financial-analysis-to-a-dashboard.md), if required.

## Create a Donut chart to visualize the gross profit of each branch <a href="#createapieordonutchart-createadonutcharttovisualizethegrossprofitofeachbranch" id="createapieordonutchart-createadonutcharttovisualizethegrossprofitofeachbranch"></a>

1. Add the **Branch** dimension as a level in the grid and expand the calculation levels (rows).
2. Expand the Gross Profit calculation row and select the branch rows.
3. Open the chart pane, select the Pie chart type, and customize the default Pie chart to suit your needs.

   <figure><img src="/files/wC4bTLQJg5xJMpeRZEKN" alt="image-20240118-211439.png" width="781"><figcaption></figcaption></figure>
4. [Add the chart to a dashboard](/financial-statements/using-statements/add-financial-analysis-to-a-dashboard.md), if required.


---

# 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.phocassoftware.com/financial-statements/using-statements/view-financial-information-in-a-chart/pie-and-donut-charts-financial-statements.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.
