Insert data

  1. Find the shape name you want to update. See here to find shape names.

  2. Specify chart title under title if necessary

  3. Under data:

    • The first array contains the array of series labels e.g. North in below example

    • The second array contains the list of categories e.g. January in below example

    • The third array contains the series values in order for first category e.g. North in January followed by South in January and so on in below example

    • The forth array contains the series values in order for second category e.g. North in February followed by South in February and so on in below example

    • Continue inserting data in array

Before and after

Template Presentation

JSON payload

{
  "presentation": {
    "template": "slides_as_template_ColumnChart_data.pptx",
    "export_version": "Pptx2010",
    "slides": [
      {
        "type": "slide",
        "slide_index": 0,
        "shapes": [
          {
            "name": "Chart 4",
            "title": "Average Annual Precipitations",
            "data": [
              [
                "North",
                "South",
                "East",
                "West"
              ],
              [
                "January",
                "February",
                "March"
              ],
              [
                11,
                15,
                4,
                7
              ],
              [
                25,
                60,
                77,
                30
              ],
              [
                40,
                50,
                65,
                44
              ]
            ]
          }
        ]
      }
    ]
  }
}

Last updated