# Appending to data labels

1. Use the array `"overlays"` to pass a list of objects for each corresponding data label.  Each data label can have multiple overlays applied to it.&#x20;
2. Overlays can require a 'value' (string), 'color' and where in relation to the data label the overlay needs to be positioned ('position').

Reference: [chart](/json-template-syntax/shapes/chart.md)

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

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

<figure><img src="/files/r4XJcnVCup3neSnAQiVP" alt=""><figcaption></figcaption></figure>

***

<figure><img src="/files/Srs9MOLqwCpohuLsV1d2" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

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

```json
{
  "presentation": {
    "template": "template.pptx",
    "slides": [
      {
        "slide_index": 0,
        "shapes": [
          {
            "name": "Chart 1",
            "title": "Automating shape types",
            "categoryTitle": "Month",
            "valueTitle": "Times used",
            "data": [
              ["Intense Demand", "Dip-in Demand", "Low-no Demand"],
              [
                "Read a printed newspaper",
                "Visited a newspaper website",
                "Read a printed magazine",
                "Read a digital magazine",
                "None of the above"
              ],
              [25.87, 38.58, 49.69],
              [49.05, 40.58, 38.45],
              [100, 75.23, 34.98],
              [6.54, 5.64, 4.96],
              [78.32, 95.75, 97]
            ],
            "overlays": [
              [
                {
                  "value": "\u2191",
                  "color": "255,0,0",
                  "position": "left"
                },
                {
                  "value": "\u2194",
                  "color": "255,0,0",
                  "position": "above"
                },
                {
                  "value": "\u2191",
                  "color": "255,0,0",
                  "position": "above"
                }
              ],
              [
                {
                  "value": "\u2193",
                  "color": "255,0,0",
                  "position": "below"
                }
              ],
              [
                {
                  "value": "\u2193",
                  "color": "255,0,0",
                  "position": "left"
                },
                {
                  "value": "\u2193",
                  "color": "255,0,0",
                  "position": "above"
                }
              ],
              [
                {
                  "value": " \u2191",
                  "color": "255,0,0",
                  "position": "right"
                }
              ],
              [{}],
              [{}],
              [
                {
                  "value": "\u2191",
                  "color": "255,0,0",
                  "position": "right"
                }
              ],
              [
                {
                  "value": "\u2191",
                  "color": "255,0,0",
                  "position": "right"
                }
              ],
              [{}],
              [{}],
              [{}],
              [{}],
              [
                {
                  "value": "\u2194",
                  "color": "255,0,0",
                  "position": "below"
                }
              ],
              [{}],
              [{}]
            ]
          }
        ]
      }
    ]
  }
}

```

{% 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/appending-to-data-labels.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.
