> 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="https://1155212587-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mgoqdluo05I2RXHZpTr-887967055%2Fuploads%2FhB93hi1pkaoO4VgQ4GSK%2Ftemplate.png?alt=media&amp;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&amp;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 %}
