You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/starlight-docs/src/content/docs/dashboards/visualize/pie-chart.md
+14-13Lines changed: 14 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@ title: "Pie chart"
3
3
sidebar:
4
4
order: 50
5
5
---
6
+
6
7
A pie chart displays data as proportional slices of a circle, making it ideal for visualizing part-to-whole relationships.
7
8
8
9
## Creating a pie chart
@@ -17,7 +18,7 @@ Start with an aggregation query that counts events by category:
17
18
source = opensearch_dashboards_sample_data_flights | stats count() by Carrier
18
19
```
19
20
20
-
After running this query, the visualization editor maps the fields automatically:
21
+
After running this query, change the chart type to **Pie** in the visualization type selector. The visualization editor then maps the fields automatically:
21
22
22
23
- The **Size** displays the `count()` field.
23
24
- The **Color** displays the `Carrier` field.
@@ -49,9 +50,9 @@ You can configure the following settings in the configuration panel.
49
50
50
51
In the **Fields** section, configure the data fields.
51
52
52
-
| Field | Description |
53
-
| --- | --- |
54
-
|**Size**| Select a numeric field that determines the size of each slice. For example, `count()` makes each slice proportional to the number of events in that category. |
|**Size**| Select a numeric field that determines the size of each slice. For example, `count()` makes each slice proportional to the number of events in that category.|
55
56
|**Color**| Select a categorical field that splits the data into individual slices, each rendered in a different color. For example, use a `Carrier` field to display a slice for each airline. |
56
57
57
58
### Split
@@ -62,21 +63,21 @@ In the **Split by** dropdown list, select a field to split the chart into separa
62
63
63
64
The following table describes the pie chart settings.
64
65
65
-
| Setting | Description |
66
-
| --- | --- |
67
-
|**Show as**| Controls whether the chart renders as a full pie or a **Donut** (ring) shape. **Donut** is the default. |
68
-
|**Show values**| When enabled, shows the numeric value for each slice on the chart. |
69
-
|**Show labels**| When enabled, shows the category label for each slice on the chart. |
0 commit comments