> For the complete documentation index, see [llms.txt](https://docs.powerpointgeneratorapi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.powerpointgeneratorapi.com/examples/chart/datapoints.md).

# 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 %}
