Populate simple table

Fill a table using a two-dimensional array of cell values

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

  2. Use the data_cells object to populate a table shape. It is a 2-dimensions array of cell values.

  3. Each cell value can be a simple string or a text object.

  4. You can provide more or fewer rows or columns than the template shape

Reference: table

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

{
  "presentation": {
  "template": "template.pptx",
    "slides": [
      {
        "slide_index": 0,
        "shapes": [
          {
            "name": "Table 1",
            "data_cells": [
              [
                "Jan",
                "Feb",
                "Mar",
                "Apr",
                "May",
                "Jun"
              ],
              [
                "45",
                "65",
                "23",
                "63",
                "74",
                "69" 
              ],
              [
                "1",
                "98",
                "6",
                "45",
                "41",
                "60"
              ]
            ]
          }
        ]
      }
    ]
  }
}

Last updated