# Show Chart

### Overview

This procedure displays a chart that was previously created using `create a chart`. It renders the chart at the specified DPI and returns the resulting image file.

### Syntax

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

<details>

<summary><code>show the chart</code></summary>

#### What does it do?

Displays the current 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>

<details>

<summary><code>the dpi is x</code></summary>

#### What does it do?

Overrides the default resolution.

#### Where does it go?

Indented under `show the chart with`.

#### Is it required?

❌ No — This phrase is **optional**.

#### Does it require data?

✅ Yes — Replace **x** with a numeric value (dots per inch). The default is `600`.

#### Example

```
the dpi is 300
```

</details>

### Examples

#### 1. Basic Display

```
create a bar chart where
    the categories are ["Q1", "Q2", "Q3", "Q4"]
    the values are [125000, 158000, 142000, 167000]
    the title is "Quarterly Revenue"
show the chart
```

#### 2. Custom Resolution

```
create a pie chart where
    the categories are ["Sales", "Marketing", "Support"]
    the values are [50, 30, 20]
    the title is "Team Distribution"
show the chart with
    the dpi is 300
```
