Skip to content

Commit 6b7e567

Browse files
authored
fix(doc): replaced incorrect image used by pie chart doc (#303)
Signed-off-by: Yulong Ruan <ruanyl@amazon.com>
1 parent fa03540 commit 6b7e567

2 files changed

Lines changed: 14 additions & 13 deletions

File tree

211 KB
Loading

docs/starlight-docs/src/content/docs/dashboards/visualize/pie-chart.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: "Pie chart"
33
sidebar:
44
order: 50
55
---
6+
67
A pie chart displays data as proportional slices of a circle, making it ideal for visualizing part-to-whole relationships.
78

89
## Creating a pie chart
@@ -17,7 +18,7 @@ Start with an aggregation query that counts events by category:
1718
source = opensearch_dashboards_sample_data_flights | stats count() by Carrier
1819
```
1920

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:
2122

2223
- The **Size** displays the `count()` field.
2324
- The **Color** displays the `Carrier` field.
@@ -49,9 +50,9 @@ You can configure the following settings in the configuration panel.
4950

5051
In the **Fields** section, configure the data fields.
5152

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. |
53+
| Field | Description |
54+
| --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
55+
| **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. |
5556
| **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. |
5657

5758
### Split
@@ -62,21 +63,21 @@ In the **Split by** dropdown list, select a field to split the chart into separa
6263

6364
The following table describes the pie chart settings.
6465

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. |
66+
| Setting | Description |
67+
| ------------------ | ------------------------------------------------------------------------------------------------------------ |
68+
| **Show as** | Controls whether the chart renders as a full pie or a **Donut** (ring) shape. **Donut** is the default. |
69+
| **Show values** | When enabled, shows the numeric value for each slice on the chart. |
70+
| **Show labels** | When enabled, shows the category label for each slice on the chart. |
7071
| **Truncate after** | Sets the maximum width in pixels for labels before truncation. Only visible when **Show labels** is enabled. |
7172

7273
### Legend
7374

7475
The legend summarizes the visual color encodings used in the chart.
7576

76-
| Setting | Description |
77-
| --- | --- |
78-
| **Show legend** | Shows or hides the legend. |
79-
| **Position** | Controls where the legend appears relative to the chart. Supported values: **Left**, **Right**, **Top**, **Bottom**. |
77+
| Setting | Description |
78+
| --------------- | -------------------------------------------------------------------------------------------------------------------- |
79+
| **Show legend** | Shows or hides the legend. |
80+
| **Position** | Controls where the legend appears relative to the chart. Supported values: **Left**, **Right**, **Top**, **Bottom**. |
8081

8182
### Tooltip
8283

0 commit comments

Comments
 (0)