Set color

  • Select the shape by name you want to modify. See here to find shape names.

  • Specify chart title under title if necessary

  • Use the series array inside settings to define colors for each data series individually.

  • Each entry in the array corresponds to a series and accepts the following parameters:

    • fillColor — RGB value in the format "R,G,B".

    • seriesIndex — Zero-based index of the series to apply the color to.

  • This allows precise color customization for each series in the chart, independent of the template’s default palette.

Reference: Chart styling

Download: input.zip | output.pptx


{
    "presentation": {
        "slides": [
            {
                "shapes": [
                    {
                        "name": "Chart 1",
                        "settings": {
                            "series": [
                                {
                                    "fillColor": "255,0,0",
                                    "seriesIndex": 0
                                },
                                {
                                    "fillColor": "0,255,0",
                                    "seriesIndex": 1
                                },
                                {
                                    "fillColor": "0,0,255",
                                    "seriesIndex": 2
                                }
                            ]
                        }
                    }
                ],
                "slide_index": 0
            }
        ],
        "template": "template.pptx"
    }
}

Last updated

Was this helpful?