Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Sometimes, you want to change the position or size of the new or existing chart inside the worksheet. Aspose.Cells for Python via .NET provides the Chart.chart_object property to achieve this. You can use its sub‑properties to re‑size the chart with new height and width or re‑position it with new X and Y coordinates.
To change the chart’s position (X, Y coordinates) or size (height, width), use these properties:
The following example explains the usage of the above APIs. It loads the existing workbook that contains a chart in its first worksheet, then it re‑sizes and re‑positions the chart using Aspose.Cells for Python via .NET.
There are times when you need to manipulate or modify charts in designer template files. Aspose.Cells for Python via .NET fully supports manipulating designer chart contents and elements. The data, chart contents, background image, and formatting can be preserved with accuracy.
To manipulate designer charts in template files, use the chart‑related API. For example, you may use the Worksheet.Charts property to get the existing charts collection in the template file.
The following example shows how to create a pyramid chart. We will manipulate this chart later on.
The following example shows how to manipulate the existing chart. In this example, we modify the chart created above. In the generated output, note that the data label of one data point has been set to ‘United Kingdom, 30K’.
In this example, we will manipulate a line chart. We will add some data series to the existing chart and change their line colors.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.