> For the complete documentation index, see [llms.txt](https://docs.kognitos.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kognitos.com/legacy/legacy-experience/automation-areas/charts/remove-legend.md).

# Remove Legend

Removes the legend on an existing pie chart.

### Overview

This procedure removes the legend from a pie chart that previously had one enabled. This can be useful when you want to simplify the chart display or when the legend is not needed.

### Syntax

Below is a line-by-line overview of the automation syntax. Expand each line to learn more.

<details>

<summary><code>remove the legend from the chart</code></summary>

#### What does it do?

Removes the legend display on the current pie chart.

#### Where does it go?

This phrase should be written on a **new line**.

#### Is it required?

✅ Yes — This phrase is **required**.

#### Does it require data?

✅ Yes — A reference to **the chart** must be defined in the automation.

</details>

### Examples

#### 1. Remove Legend from Pie Chart

```
create a pie chart where
    the categories are ["Q1", "Q2", "Q3", "Q4"]
    the values are [25.5, 28.3, 22.1, 24.1]
    the title is "Quarterly Results"
    the style is "white"
    the legend is "enabled"
remove the legend from the chart
show the chart
```
