# Pie/Ring

### Pie / Ring Chart

You can visualize the ratio of the data in pie/ring shapes. It is suitable to compare the ratios among the groups.

![](/files/-M4oNAp2PFyOyLKwwQMh)

### Column Assignments

* Color - Assign a column for groups. Take a look at [Color](/visualization/features/color.md) section for more details.
* Value - Assign a data column you want to visualize and compare. The column data should be numeric.
* Sort By Value - If you check it, the color sort is based on the size of the values. If you uncheck it, the color sort is based on the data. If you assign a character column, it will be in an alphabetical order. If you assign a factor column, the order will be in the factor level order.
* Repeat By - You can assign a column to repeat the chart for each of its values. Take a look at [Repeat By](/visualization/features/small-multiple.md) section for more details.
* Style - You can choose Pie or Ring style.

### Highlight

You can change the color of the specific markers such as bars, lines or circles that you pick to stand out from others. See [Highlight](/visualization/features/highlight-1.md) for the detail.

### Category

You can categorize numeric values inside the chart. See [Category(Binning)](/visualization/features/category.md) for the detail.

### 'Others' Group

If you have many categories, you can reduce the number of categories by changing some category names to 'Others' using the 'Others' Group feature. See ['Others' Group](/visualization/features/others-group.md) for the detail.

### Custom Function

You can use the Custom Function feature to define your own aggregation function. See [Custom Function](https://github.com/exploratory-io/book/blob/master/viz/custom-function.md) for the detail.

### Missing Value Handling

You can use the Missing Value Handling feature to control missing values. See [Missing Value Handling](/visualization/features/missing-value-handling.md) for the detail.

### Show Detail

You can show the detailed data underlying the chart by clicking the chart figure. See [Show Detail](/visualization/features/show-detail.md) for the detail.

### Layout Configuration

* Show Percentages - Show percentage numbers on the plot area.
* Show Values - Show the actual numbers on the plot area.
* Show Labels - Show the category names on the plot area.
* Hole Size - The ratio of the hole size. If you set 0, it becomes a pie chart.

Take a look at [Layout Configuration](/visualization/features/layout.md) on how to configure the layout and format.

### Save as an Image

You can save the chart as an image file. See [Save as PNG/SVG](/visualization/features/save.md) for more details.


---

# 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.exploratory.io/visualization/types/pie.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.
