Various types of charts

Currently supported chart types:

These can be customized using the standard data and settings parameters in your payload.

Reference: chart

Line chart

Download: input.zip | output.pptx


{
  "presentation": {
    "template": "template.pptx",
    "slides": [
      {
        "slide_index": 0,
        "shapes": [
          {
            "name": "Chart 1",
            "title": "Quarterly Business Performance (2025)",
            "data": [
              [
                "Revenue",
                "Expenses",
                "Profit"
              ],
              [
                "Q1",
                "Q2",
                "Q3",
                "Q4"
              ],
              [
                5.2,
                3.1,
                4.6
              ],
              [
                2.8,
                2.5,
                3.2
              ],
              [
                2.4,
                0.6,
                1.4
              ],
              [
                1.3,
                4.0,
                2.4
              ]
            ]
          }
        ]
      }
    ]
  }
}

Bar chart

Download: input.zip | output.pptx


{
  "presentation": {
    "template": "template.pptx",
    "slides": [
      {
        "slide_index": 0,
        "shapes": [
          {
            "name": "Chart 1",
            "title": "Average Annual Precipitations",
            "data": [
              [
                "North",
                "South",
                "East",
                "West"
              ],
              [
                "January",
                "February",
                "March",
                "April"
              ],
              [
                11,
                15,
                4,
                7
              ],
              [
                15,
                35,
                23,
                18
              ],
              [
                40,
                50,
                65,
                44
              ],
              [
                60,
                73,
                52,
                68
              ]
            ]
          }
        ]
      }
    ]
  }
}

Stacked Bar chart

Download: input.zip | output.pptx


{
  "presentation": {
    "template": "template.pptx",
    "slides": [
      {
        "slide_index": 0,
        "shapes": [
          {
            "name": "Chart 1",
            "title": "Monthly Revenue Breakdown (2025)",
            "data": [
              [
                "Online Sales",
                "In-Store Sales"
              ],
              [
                "January",
                "February",
                "March",
                "April",
                "May",
                "June"
              ],
              [
                12000,
                9500
              ],
              [
                18000,
                11000
              ],
              [
                22000,
                13000
              ],
              [
                19500,
                14000
              ],
              [
                25000,
                12500
              ],
              [
                17000,
                9000
              ]
            ]
          }
        ]
      }
    ]
  }
}

Stacked Area chart

Download: input.zip | output.pptx


{
  "presentation": {
    "template": "template.pptx",
    "slides": [
      {
        "slide_index": 0,
        "shapes": [
          {
            "name": "Chart 1",
            "title": "Monthly Revenue Breakdown (2025)",
            "data": [
              [
                "Online Sales",
                "In-Store Sales"
              ],
              [
                "January",
                "February",
                "March",
                "April",
                "May",
                "June"
              ],
              [
                12000,
                9500
              ],
              [
                18000,
                11000
              ],
              [
                22000,
                13000
              ],
              [
                19500,
                14000
              ],
              [
                25000,
                12500
              ],
              [
                17000,
                9000
              ]
            ]
          }
        ]
      }
    ]
  }
}

Bar/Line Combo chart

Download: input.zip | output.pptx


{
  "presentation": {
    "template": "template.pptx",
    "slides": [
      {
        "slide_index": 0,
        "shapes": [
          {
            "name": "Chart 1",
            "title": "Quarterly Sales and Profit Margin",
            "data": [
              [
                "North Region", 
                "South Region", 
                "Profit Margin"
              ],
              ["Q1", 
                "Q2", 
                "Q3", 
                "Q4"
              ],
              [
                  32000, 
                  27000, 
                  35000
              ],
              [
                  28000, 
                  30000, 
                  33000
              ],
              [
                  38000, 
                  36000, 
                  41000
              ],
              [
                  42000, 
                  39000, 
                  45000
              ]
            ]
          }
        ]
      }
    ]
  }
}

Scatter chart

Download: input.zip | output.pptx


{
    "presentation": {
        "template": "template.pptx",
        "slides": [
            {
                "slide_index": 0,
                "shapes": [
                    {
                        "name": "Plot",
                        "data": [
                            [
                              "a",
                              "b",
                              "c"
                            ],
                            [
                                3.8,
                                3.2,
                                7.6,
                                9.3
                            ],
                            [
                                7.2,
                                5.5,
                                6.3,
                                4.1
                            ],
                            [
                                6.2,
                                4.5,
                                5.3,
                                3.1
                            ],
                            [
                                1.2,
                                3.5,
                                9.3,
                                1.1
                            ]
                        ],
                        "additional_data":[
                            {
                                "cell_target": "A2",
                                "data": [
                                    ["A"],
                                    ["B"],
                                    ["C"],
                                    ["D"]
                                ]
                            }
                        ]
                    }
                ]
            }
        ]
    }
}

Last updated

Was this helpful?