# Set series color

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. Specify chart title under `title` if necessary
3. Use the `series` array inside `settings` to define colors for each data series individually.
4. Each entry in the array corresponds to a series and accepts the following parameters:
   1. **fillColor** — RGB value in the format `"R,G,B"`.
   2. **seriesIndex** — Zero-based index of the series to apply the color to.
5. This allows precise color customization for each series in the chart, independent of the template’s default palette.

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

Download: [input.zip](https://drive.google.com/uc?export=download\&id=1rS8jMqNEV1fD8PsqODVexHGlSqm5cLyQ) | [output.pptx](https://drive.google.com/uc?export=download\&id=1zbVI_X9xGwngZr-9RHiKBCiIeDiBUHmH)

{% 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%2FhB93hi1pkaoO4VgQ4GSK%2Ftemplate.png?alt=media&#x26;token=3b879229-cc99-45c1-8786-e01a03305dde" 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%2FN2ylpZ4DRCql4ZPuuNAj%2Foutput.png?alt=media&#x26;token=5da57934-255f-428d-b090-18551b3eedc6" 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",
                        "settings": {
                            "series": [
                                {
                                    "fillColor": "255,0,0",
                                    "seriesIndex": 0
                                },
                                {
                                    "fillColor": "0,255,0",
                                    "seriesIndex": 1
                                },
                                {
                                    "fillColor": "0,0,255",
                                    "seriesIndex": 2
                                }
                            ]
                        }
                    }
                ]
            }
        ]
    }
}
```

{% 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/set-series-color.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.
