Update a Chart Series

Introduction

In PowerPoint documents, chart series refer to the data sets or groups of related data points that are plotted on a chart. A chart series typically consists of a collection of data points that represent a particular category or set of values. PowerPoint supports various types of charts, such as bar charts, line charts, pie charts, and more, and each of these chart types can have one or multiple series. Use the following method to update a data series in a chart. 

UpdateChartSeries

API Information

API Type Description Resource
/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/series/{seriesIndex} PUT Updates a data series of a chart in a presentation saved in a storage. UpdateChartSeries

Request Parameters

Name Type Location Required Description
name string path true The name of a presentation file.
slideIndex integer path true The 1-based index of a presentation slide.
shapeIndex integer path true The 1-based index of a shape (must be a chart).
seriesIndex integer path true The 1-based index of a data series.
series Series body true The data transfer object with a series of data.
password string header false The password to open the presentation.
folder string query false The path to the folder containing the presentation file.
storage string query false The name of the storage contaning the folder.

Examples

The document MyPresentation.pptx, saved in the default storage, contains a chart (the second shape) with three lines on the first slide - sales volumes of products “Product A”, “Product B”, “Product C” for 2021 to 2023. Update the sales volumes of Product C to (25, 30, 30) for the same years.

The sales chart

cURL Solution

SDK Solutions

The result:

The sales chart

SDKs

Check Available SDKs to learn how to add an SDK to your project