Delete a Chart Series

Introduction

In Microsoft PowerPoint, chart series are used to represent and display data in graphical form. A chart series is a collection of related data points that are plotted on the chart. Use the following method to delete data series from a chart.

DeleteChartSeries

API Information

API Type Description Resource
/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/series/{seriesIndex} DELETE Deletes a data series from a chart in a presentation saved in a storage. DeleteChartSeries

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.
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 first shape) with three lines on the first slide - sales volumes of products “Product A”, “Product B”, and “Product C” for 2021 to 2023. Delete the third data series (“Product C”) from the chart.

The line chart

cURL Solution

SDK Solutions

The result:

The line chart

SDKs

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