Update Chart Legend in a Worksheet – Aspose.Cells Cloud API Guide

This REST API updates a chart legend.

Prerequisites: To use this endpoint you must have a valid Aspose Cloud JWT token and the target workbook must be stored in a supported storage location (default is the Aspose Cloud storage). Ensure the workbook name, worksheet name, and chart index are correct.

A chart legend displays the names and symbols for the data series in a chart. Updating the legend allows you to customize its appearance, such as font style, color, and shadow.

PostWorksheetChartLegend API

POST https://api.aspose.cloud/v3.0/cells/{name}/worksheets/{sheetName}/charts/{chartIndex}/legend

Security and Authentication

The Aspose.Cells Cloud APIs are secure and require JWT token-based authentication.

Request parameters

Parameter Name Type Location Description
name string path Workbook name.
sheetName string path Worksheet name.
chartIndex integer path Index of the chart to modify.
legend object body JSON object that defines the legend settings.
folder string query Folder that contains the workbook.
storageName string query Name of the storage.

The OpenAPI Specification defines a publicly accessible programming interface and lets you carry out REST interactions directly from a web browser.

You can use the cURL command-line tool to access Aspose.Cells web services easily. The following example shows how to call the Cloud API using cURL.

Cloud SDK Family

Using an SDK accelerates development. An SDK handles low‑level details so you can focus on your project tasks. Please check out the GitHub repository for a complete list of Aspose.Cells Cloud SDKs.

The following code examples demonstrate how to call Aspose.Cells web services using various SDKs: