Delete a Chart Category

Introduction

For PowerPoint presentations, creating charts involves using data organized in the form of a table. Charts in PowerPoint documents typically represent a combination of data series and categories. Use the following method to delete data categories from the charts. 

DeleteChartCategory

API Information

API Type Description Resource
/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/categories/{categoryIndex} DELETE Deletes a data category from a chart in a presentation saved in a storage. DeleteChartCategory

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).
categoryIndex integer path true The 1-based index of a data category.
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 column chart (the second shape) on the first slide - sales volumes of products “Product A”, “Product B”, and “Product C” for 2021 to 2023. Delete data for 2023.

Sales chart

cURL Solution

SDK Solutions

The result:

Sales chart

SDKs

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