mirror of
https://github.com/grafana/grafana.git
synced 2025-09-27 09:44:10 +08:00

* Docs: Remove 'Reference' prefix from all reference topic filenames: Per issue #46818, prefixing reference topics with "Reference" can damage usability. Remove the prefix from filenames. * Docs: Remove "Reference:" prefix from titles and ToC headings: Per issue #46818, prefixing reference topics with "Reference" can damage usability. Remove the prefix from titles and ToC headings. H1s retain the prefix to emphasize the nature of the doc without affecting the docs' discoverability. * Docs: Move Transformation functions reference alongside Transformation docs * Docs: Update links to reference docs in Transformation docs * Docs: Update links to reference docs in Panels docs * Docs: Update links to query options reference across docs * Docs: Update links to standard field definitions reference across docs * Docs: Update links to calculation types reference across docs * Docs: Update links to transformation functions reference across docs * Docs: Rename apply transformation doc filename to add transformation * Docs: Rename apply transformation doc to add transformation * Docs: Update links to add transformation doc across docs * Docs: Update relrefs in Transformation functions reference
81 lines
2.7 KiB
Markdown
81 lines
2.7 KiB
Markdown
+++
|
|
title = "Pie chart"
|
|
keywords = ["grafana", "pie chart"]
|
|
weight = 850
|
|
aliases = ["/docs/grafana/latest/panels/visualizations/pie-chart-pane/"]
|
|
+++
|
|
|
|
# Pie chart
|
|
|
|
{{< figure src="/static/img/docs/pie-chart-panel/pie-chart-example.png" max-width="1200px" lightbox="true" caption="Pie chart visualization" >}}
|
|
|
|
The pie chart displays reduced series, or values in a series, from one or more queries, as they relate to each other, in the form of slices of a pie. The arc length, area and central angle of a slice are all proportional to the slices value, as it relates to the sum of all values. This type of chart is best used when you want a quick comparison of a small set of values in an aesthetically pleasing form.
|
|
|
|
## Value options
|
|
|
|
Use the following options to refine the value in your visualization.
|
|
|
|
### Show
|
|
|
|
Choose how much information to show.
|
|
|
|
- **Calculate -** Reduces each value to a single value per series.
|
|
- **All values -** Displays every value from a single series.
|
|
|
|
### Calculation
|
|
|
|
Select a calculation to reduce each series when Calculate has been selected. For information about available calculations, refer to [Calculation types]({{< relref "../panels/calculation-types.md" >}}).
|
|
|
|
### Limit
|
|
|
|
When displaying every value from a single series, this limits the number of values displayed.
|
|
|
|
### Fields
|
|
|
|
Select which field or fields to display in the visualization. Each field name is available on the list, or you can select one of the following options:
|
|
|
|
- **Numeric fields -** All fields with numerical values.
|
|
- **All fields -** All fields that are not removed by transformations.
|
|
- **Time -** All fields with time values.
|
|
|
|
## Pie chart options
|
|
|
|
Use these options to refine how your visualization looks.
|
|
|
|
### Pie chart type
|
|
|
|
Select the pie chart display style.
|
|
|
|
### Pie
|
|
|
|

|
|
|
|
### Donut
|
|
|
|

|
|
|
|
### Labels
|
|
|
|
Select labels to display on the pie chart. You can select more than one.
|
|
|
|
- **Name -** The series or field name.
|
|
- **Percent -** The percentage of the whole.
|
|
- **Value -** The raw numerical value.
|
|
|
|
Labels are displayed in white over the body of the chart. You might need to select darker chart colors to make them more visible. Long names or numbers might be clipped.
|
|
|
|
The following example shows a pie chart with **Name** and **Percent** labels displayed.
|
|
|
|

|
|
|
|
{{< docs/shared "visualizations/tooltip-mode.md" >}}
|
|
|
|
{{< docs/shared "visualizations/legend-mode.md" >}}
|
|
|
|
### Legend values
|
|
|
|
Select values to display in the legend. You can select more than one.
|
|
|
|
**Percent -** The percentage of the whole.
|
|
**Value -** The raw numerical value.
|