Additional data

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

  • Use additional_data to insert custom values directly into specific cells.

  • Each cell_target defines the starting cell where the data will be written.

  • additional_data is not tied to the chart’s data range, so you can add data anywhere. It's useful for when you want to add helper values, metadata, or computed fields without affecting the main chart series.

Reference: chart

Download: input.zip | output.pptx


{
    "presentation": {
        "template": "template.pptx",
        "slides": [
            {
                "slide_index": 0,
                "shapes": [
                    {
                        "name": "Chart 5",
                        "additional_data": [
                            {
                                "cell_target": "B22",
                                "data": [
                                    [
                                        0.2,
                                        0.3,
                                        0.35
                                    ],
                                    [
                                        0.4,
                                        0.5,
                                        "0.45%"
                                    ]
                                ]
                            },
                            {
                                "cell_target": "A2",
                                "data": [
                                    [
                                        " ",
                                        35,
                                        0.6
                                    ],
                                    [
                                        "maj",
                                        0.5,
                                        58
                                    ]
                                ]
                            },
                            {
                                "cell_target": "A4",
                                "data": [
                                    [
                                        "Category 3",
                                        5,
                                        10
                                    ]
                                ]
                            },
                            {
                                "cell_target": "AA5",
                                "data": [
                                    [
                                        0.5,
                                        0.2
                                    ],
                                    [
                                        0.455,
                                        0.7234
                                    ]
                                ]
                            }
                        ]
                    }
                ]
            }
        ]
    }
}

Last updated

Was this helpful?