> 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/set-series-color.md).

# 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: [chart](/json-template-syntax/shapes/chart.md#settings-object)

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="/files/lEL6LAsKRWkkcpmb9ERR" alt=""><figcaption></figcaption></figure>

***

<figure><img src="/files/o7jvugwNoNsLQ4kbHuHB" 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.
