> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xpertai.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# 饼图

饼图是分成多个区域或切片的圆形。每个切片代表变量的一个水平的观测值计数或百分比。

## 饼图

饼图需要一个主维度和一个度量.

<img src="https://mintcdn.com/xpertai/Qps79FDII81ZU_Y9/public/img/widgets/pie/pie-attributes.png?fit=max&auto=format&n=Qps79FDII81ZU_Y9&q=85&s=490d48c8a8895d837b6ba72942ac1b57" alt="Small" width="815" height="805" data-path="public/img/widgets/pie/pie-attributes.png" />

<img src="https://mintcdn.com/xpertai/Qps79FDII81ZU_Y9/public/img/widgets/pie/pie.png?fit=max&auto=format&n=Qps79FDII81ZU_Y9&q=85&s=8301fcf6da7258aac8e8ace1802f964b" alt="Small Shadow" width="951" height="951" data-path="public/img/widgets/pie/pie.png" />

### 环形图

通过选择饼图的变形属性, 可以设置图形效果为环形图.

<img src="https://mintcdn.com/xpertai/Qps79FDII81ZU_Y9/public/img/widgets/pie/doughnut.png?fit=max&auto=format&n=Qps79FDII81ZU_Y9&q=85&s=73e7169f22d43e1b6e49104f73d40ffb" alt="Small Shadow" width="951" height="951" data-path="public/img/widgets/pie/doughnut.png" />

### 南丁格尔图

通过选择饼图的变形属性, 可以设置图形效果为南丁格尔图.

<img src="https://mintcdn.com/xpertai/Qps79FDII81ZU_Y9/public/img/widgets/pie/nightingale.png?fit=max&auto=format&n=Qps79FDII81ZU_Y9&q=85&s=a01016daf3111a2339934785165ab3bb" alt="Small Shadow" width="951" height="951" data-path="public/img/widgets/pie/nightingale.png" />

## 格子

像其他图形一样, 饼图也可以通过设置格子维度将图形显示为多个图形的格子形式.

<img src="https://mintcdn.com/xpertai/Qps79FDII81ZU_Y9/public/img/widgets/pie/trellis.png?fit=max&auto=format&n=Qps79FDII81ZU_Y9&q=85&s=1e0368e811e5d2280e937d517a8be89e" alt="Middle Shadow" width="1927" height="706" data-path="public/img/widgets/pie/trellis.png" />

如下图通过添加日历维度, 并设置为角色为 **格子**.

<img src="https://mintcdn.com/xpertai/Qps79FDII81ZU_Y9/public/img/widgets/pie/trellis-chart-annotation.png?fit=max&auto=format&n=Qps79FDII81ZU_Y9&q=85&s=a28263312898ad3257b2e22567b3d01d" alt="Small" width="817" height="960" data-path="public/img/widgets/pie/trellis-chart-annotation.png" />

## 图形属性

图形详细属性列表:

| 名称   | 说明        | 详细信息 |
| ---- | --------- | ---- |
| 系列属性 | series 属性 |      |
| 提示框  | 提示框属性     |      |
| 图例   | 图例属性      |      |
| 全局颜色 | 全局颜色属性    |      |
| 辅助增强 | 辅助增强属性    |      |

## 示例

<iframe src="https://app.xpertai.cn/public/story/point/01bf76c0-d2c8-480f-9101-dba7049df1dc" width="100%" height="1500px" frameBorder="0" scrolling="no" allowFullScreen />
