Populating a Scatter chart

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

  • Specify the chart title under title, if necessary.

  • Under data:

    • Define the main dataset for the chart.

    • Use additional_data to insert extra information into specific cells in the chart’s data table.

    • Each cell_target defines where the data will start being written.

Reference: chart

Download: input.zip | output.pptx


{
    "presentation": {
        "template": "template.pptx",
        "slides": [
            {
                "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"]
                                ]
                            }
                        ]
                    }
                ],
                "slide_index": 0
            }
        ]
    }
}

Last updated

Was this helpful?