Table styling
To set background colors for specific table cells, use the
data_cellsproperty.Each cell can include a
cell_propertiesobject to define its style (e.g.,bg_color).You can pass multiple rows, each represented as an array of cell definitions or strings.
When
data_cellsis used, all table rows are replaced — define every row you need to keep.
Reference: table
Download: input.zip | output.pptx


{
"presentation": {
"template": "template.pptx",
"slides": [
{
"slide_index": 0,
"shapes": [
{
"name": "Table 5",
"data_cells": [
[
{
"cell_properties": {
"bg_color": "#64bbd1"
}
},
{
"cell_properties": {
"bg_color": "#64bbd1"
}
},
{
"cell_properties": {
"bg_color": "#3c707d"
}
},
{
"cell_properties": {
"bg_color": "#3c707d"
}
},
{
"cell_properties": {
"bg_color": "#2c535d"
}
},
{
"cell_properties": {
"bg_color": "#2c535d"
}
}
],
[
"",
"",
{
"cell_properties": {
"bg_color": "#ff8686"
}
},
{
"cell_properties": {
"bg_color": "#ff8686"
}
},
"",
""
]
]
}
]
}
]
}
}Last updated
Was this helpful?