Update Chart Second Category Axis – Aspose.Cells Cloud API

This REST API updates the second category axis of a chart.

PostChartSecondCategoryAxis API

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

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 The name of the Excel file.
sheetName string path The worksheet name that contains the chart.
chartIndex integer path The zero‑based index of the chart to be updated.
axis object body The second‑category‑axis object with the new settings.
folder string query The folder path where the file is stored.
storageName string query The name of the storage service.

Authentication – The API requires a valid OAuth 2.0 access token. Generate a JWT token by following the Authentication Guide. Include the token in the Authorization header as shown in the cURL example below.

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 calls to the Cloud API with cURL.

Cloud SDK Family

SDKs simplify development by handling low‑level details and allowing you to focus on your business logic. 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:

Notes & Best Practices

  • The chartIndex parameter is zero‑based; the first chart in a worksheet is index 0.
  • The API supports both .xlsx and .xls workbook formats.
  • Include only the properties you need in the axis object; unspecified properties retain their existing values.
  • Respect rate‑limit guidelines (typically 100 requests per minute per account) to avoid throttling.