# Save Chart

### Overview

This procedure saves a previously created chart as a PNG image file and stores it internally, allowing the chart to be accessed later or shared with others.

### Syntax

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

<details>

<summary><code>save the chart</code></summary>

#### What does it do?

Saves 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 for the saved image.

#### Where does it go?

Indented under `save 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 800
```

</details>

### Examples

#### 1. Basic Save

In this example, the chart is saved with the default DPI of 600.

```
create a bar chart where
    the categories are ["Jan", "Feb", "Mar", "Apr"]
    the values are [12500, 15800, 14200, 16700]
    the title is "Monthly Sales"
save the chart
```

#### 2. Save With Custom DPI

Here, the chart is saved with a custom DPI of 900.

```
create a pie chart where
    the categories are ["Product A", "Product B", "Product C"]
    the values are [45.5, 32.1, 22.4]
    the title is "Market Share Analysis"
    the legend is "enabled"
save the chart with
    the dpi is 900
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.kognitos.com/legacy/legacy-experience/automation-areas/charts/save-chart.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
