# Populating a Scatter chart

1. Select the shape by `name` you want to modify. See [here](https://docs.powerpointgeneratorapi.com/knowledge-base/finding-shape-names) to find shape names.
2. Under `data`:
   1. Define the main dataset for the chart.
   2. Use `additional_data` to insert extra information into specific cells in the chart’s data table.
   3. Each `cell_target` defines where the data will start being written.

Reference: [chart](https://docs.powerpointgeneratorapi.com/json-template-syntax/shapes/chart "mention")

Download: [input.zip](https://drive.google.com/uc?export=download\&id=1bYMrqWiBoA04XYkSqgdtKC5Fb2uycSA9) | [output.pptx](https://drive.google.com/uc?export=download\&id=1nFvSCu5VkanLvXZvX8LR16VB2_YT5Tib)

{% columns %}
{% column width="41.66666666666667%" %}

<figure><img src="https://1155212587-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mgoqdluo05I2RXHZpTr-887967055%2Fuploads%2Feiy0UhLTTd0hjxBvkPP4%2Ftemplate.png?alt=media&#x26;token=8474171d-17ed-4ab7-988f-28f55b67ea52" alt=""><figcaption></figcaption></figure>

***

<figure><img src="https://1155212587-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mgoqdluo05I2RXHZpTr-887967055%2Fuploads%2FdyI9yIqIZd3LQwCXen23%2Foutput.png?alt=media&#x26;token=7d320ec0-1dc9-41fb-9e20-235e51cf62d4" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column width="58.33333333333333%" %}
{% code lineNumbers="true" %}

```json
{
    "presentation": {
        "template": "template.pptx",
        "slides": [
            {
                "slide_index": 0,
                "shapes": [
                    {
                        "name": "Plot",
                        "data": [
                            [
                              "a",
                              "b",
                              "c"
                            ],
                            [
                                3.8,
                                3.2,
                                7.6,
                                9.3
                            ],
                            [
                                7.2,
                                5.5,
                                6.3,
                                4.1
                            ],
                            [
                                6.2,
                                4.5,
                                5.3,
                                3.1
                            ],
                            [
                                1.2,
                                3.5,
                                9.3,
                                1.1
                            ]
                        ],
                        "additional_data":[
                            {
                                "cell_target": "A2",
                                "data": [
                                    ["A"],
                                    ["B"],
                                    ["C"],
                                    ["D"]
                                ]
                            }
                        ]
                    }
                ]
            }
        ]
    }
}
```

{% endcode %}
{% endcolumn %}
{% endcolumns %}


---

# 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.powerpointgeneratorapi.com/examples/chart/populating-a-scatter-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.
