Add a Chart Data Point

Introduction

In PowerPoint presentations, data points in charts play a crucial role in conveying information effectively to the audience. Data points represent individual values or observations within a dataset and are visualized through various chart types such as bar charts, line charts, scatter plots, etc. Use the following method to add data points to charts in PowerPoint presentations.

CreateChartDataPoint

API Information

API Type Description Resource
/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/series/{seriesIndex}/dataPoints POST Adds a data point to a chart in a presentation saved in a storage. CreateChartDataPoint

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.
dataPoint DataPoint body true The data transfer object of a data point.
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

In the default storage, the document MyPresentation.pptx contains a scatter chart (the second shape) that displays the number of items sold for quarters 1 through 3 (one data series). Add to the chart the number of items sold for the 4th quarter (30 items).

Sales chart

cURL Solution

SDK Solutions

The result:

Sales chart

SDKs

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