Set series color

  1. Select the shape by name you want to modify. See herearrow-up-right 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

Download: input.ziparrow-up-right | output.pptxarrow-up-right


{
    "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
                                }
                            ]
                        }
                    }
                ]
            }
        ]
    }
}

Last updated