> 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/adjust-chart-legend.md).

# Adjust chart legend

1. Select the shape by `name` you want to modify. See [here](/knowledge-base/finding-shape-names.md) to find shape names.
2. Specify chart title under `title` if necessary
3. Insert chart legend reltaed settings under `settings.` For more info please refer to "Chart legend" section on this page [chart](/json-template-syntax/shapes/chart.md)
4. Insert data value under `data.` For more info please refer to this page [chart](/json-template-syntax/shapes/chart.md).

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

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

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

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

***

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

{% column width="58.33333333333333%" %}

```json
{
  "presentation": {
    "template": "template.pptx",
    "export_version": "Pptx2010",
    "slides": [
      {
        "type": "slide",
        "slide_index": 0,
        "shapes": [
          {
            "name": "Chart 1",
            "title": "Average Annual Precipitations",
            "settings": {
              "chartShowLegend": true,
              "chartLegendPosition": "Top",
              "chartLegendFontColor": "255,0,0",
              "isChartLegendBold": true
            }
          }
        ]
      }
    ]
  }
}

```

{% endcolumn %}
{% endcolumns %}
