# Datapoints

1. Select the shape by `name` you want to modify. See [here](/knowledge-base/finding-shape-names.md) to find shape names.
2. Define the chart’s data under `data`.
3. Use `settings.isChartLabelValueVisible` to globally enable or disable all value labels.
4. Use `datapoints` to override that setting for specific data points.
5. Each datapoint uses:
   1. `categoryIndex`: the position of the data point on the X-axis (starting from 0).
   2. `seriesIndex`: the index of the data series in your dataset (starting from 0).
   3. `isLabelValueVisible`: whether the label for that specific point should be visible.

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

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

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

<figure><img src="/files/2eylmFBWxmalirfr2kkr" alt=""><figcaption></figcaption></figure>

***

<figure><img src="/files/N5Y7AxWxDmza8k0XY0B0" 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",
            "data": [
              [
                "series-a", 
                "series-b"
              ],
              [
                  5, 
                  2
              ],
              [
                  3, 
                  2.3
              ],
              [
                  4, 
                  1
              ],
              [
                  6, 
                  2.5
              ],
              [
                  4.5, 
                  1.8
              ],
              [
                  7, 
                  2.2
              ]
            ],
            "settings": {
              "isChartLabelValueVisible": false,
              "datapoints": [
                {
                  "isLabelValueVisible": true,
                  "categoryIndex": 0,
                  "seriesIndex": 0
                },
                {
                  "isLabelValueVisible": true,
                  "categoryIndex": 2,
                  "seriesIndex": 1
                },
                {
                  "isLabelValueVisible": true,
                  "categoryIndex": 5,
                  "seriesIndex": 0
                }
              ]
            }
          }
        ]
      }
    ]
  }
}

```

{% 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/datapoints.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.
