[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-03。"],[],[],null,["# Pie chart options\n\n| **Note:** This page describes visualization options for Looker. For information about Looker Studio visualizations, see [Types of charts in Looker Studio](/looker/docs/studio/types-of-charts-in-looker-studio).\n\nPie charts are useful for illustrating the proportions that several components contribute to a whole.\n\nBuilding a pie chart\n--------------------\n\nIgnoring fields that are [hidden from the visualization](/looker/docs/creating-visualizations#specifying_lookml_fields_to_include_in_the_visualization), pie chart visualizations require one dimension and one measure in the **Data** section. More dimensions or measures prevent a pie chart from rendering.\n\nPie charts can visualize a maximum of 50 rows of data. You can use [filters](/looker/docs/filtering-and-limiting#basic_filters) or the [**Row Limit**](/looker/docs/filtering-and-limiting#limiting_data) option to limit your data if needed.\n\nYou can edit pie charts in the visualization menu. Click **Edit** in the upper right corner of the visualization tab.\n\nSome options listed on this documentation page may be grayed out or hidden if they conflict with other settings that you have chosen.\n\nPlot menu options\n-----------------\n\n### Value Labels\n\nYou can change how individual sections of the pie chart are labeled:\n\n- **None**: Labels and legend are not displayed.\n- **Legend**: Displays the legend to the right of the visualization. This is the default option.\n- **Labels** : Displays lines marking the individual sections of the pie chart. You can customize the information that is displayed next to these lines. See the [**Label Type** section](#label_type) for details.\n\n### Label Type\n\nWhen **Value Labels** is set to **Labels**, you can customize the format of those labels:\n\n- **Label** : Displays the [series](/looker/docs/creating-visualizations#series-def) name.\n- **Value**: Displays the numeric value associated with the pie slice.\n- **Label --- Value**: Displays the series name in bold first, then the numeric value.\n- **Percent**: Displays the percentage of the pie slice as a portion of the total pie.\n- **Label --- Percent**: Displays the series name in bold first, then the percentage.\n\n### Inner Radius\n\nYou can format a pie chart as a donut chart, by setting the radius for the \"donut hole.\" This field accepts integers between 0 and 100, representing the percentage of the pie chart's total width (i.e., diameter) that will make up the hole. If no value is set the chart appears as a normal pie chart.\n\n### Start Angle and End Angle\n\nYou can control whether a pie chart appears as a full circle or as a portion of a circle. These fields use the 360-degree angles of a circle, and numbers between -360 and 360 can be entered. The **End Angle** must be a more positive number than the **Start Angle** ; if it's not, the visualization defaults to a full circle. If no values are entered in **Start Angle** and **End Angle**, the chart also defaults to a full circle. Your full data results appear within that portion of the circle, adjusted to fit that space.\n\nFor example, if you enter a **Start Angle** of `0` and an **End Angle** of `90`, your data appears within the upper right quarter of a circle.\n\nAs another example, if you enter a **Start Angle** of `-270` and an **End Angle** of `-90`, your data appears as the bottom half of a circle.\n\n### Edit Chart Config\n\nThe **Edit Chart Config** button at the bottom of the visualization menu opens the [Chart Config Editor](/looker/docs/advanced-visualization-editor). This editor lets you modify [HighCharts](https://api.highcharts.com/highcharts/chart) visualizations by exposing certain JSON parameters of the visualization, enabling deep customization. These customizations will not dynamically interact with data.\n\nThe **Edit Chart Config** button is available if you have either the Looker [Admin role](/looker/docs/admin-panel-users-roles#default_roles) or the [`can_override_vis_config` permission](/looker/docs/admin-panel-users-roles#can_override_vis_config).\n\nSee the [**Examples**](/looker/docs/advanced-visualization-editor#examples) section of the Chart Config Editor article for examples of some common use cases, including the following examples:\n\n- Changing the background color and axis text color\n- Conditional formatting of values within a series\n- Customizing tooltip color\n- Adding vertical reference bands and captions\n- Adding chart annotations\n\nSeries menu options\n-------------------\n\n#### Reverse colors\n\nYou can reverse the colors used on a palette. For a [categorical palette](/looker/docs/color-collections), this applies the last color in the palette to the first series, the second-to-last color in the palette to the second series, and so on. For a [sequential or diverging palette](/looker/docs/color-collections), this applies the color at the right end of the palette to the first series and move left on the palette for the remaining series.\n\n### Customizations\n\nYou can customize each series in the chart in several ways:\n\n1. Click the arrow next to a series to expand its options.\n2. Click on the color swatch to select a custom color for the series. This overrides the color palette defined by the [**Colors**](#colors) option.\n3. Enter a custom series label if desired. This impacts the chart legend and tooltips."]]