Get Chart Title from a Worksheet

This REST API retrieves the title of a chart that is stored in a worksheet of an Excel workbook.

REST API

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

Request parameters

Parameter Name Type Location Description
name string path Name of the workbook file.
sheetName string path Name of the worksheet that contains the chart.
chartIndex integer path Zero‑based index of the chart.
folder string query Folder path where the workbook is stored.
storageName string query Name of the storage service.

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 make a call to the Cloud API with cURL.

Response fields

Field Description
Title.Text The actual text displayed as the chart title.
Title.Font.Name Font family used for the title (e.g., Arial).
Title.Font.Size Font size in points.
Title.Font.IsBold Indicates whether the title text is bold.

How to extract the title in a script (using jq)

# Assuming the JSON response is saved in response.json
title=$(jq -r '.Title.Text' response.json)
echo "Chart title: $title"

Cloud SDK Family

Using an SDK is the best way to speed up 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 make calls to Aspose.Cells web services using various SDKs: