Changing bevel and other 3-D Formats for charts in word

Hi,

I am using the Aspose.Words 25.2.0.0 and opening a word document with a chart in. I have a reference to the Aspose.Words.Drawing.Charts.Chart object but I can’t find where to modify for example the setting highlighted below.

Is this possible and if so could you please help point me in the right direction?

@chris23

To modify the bevel and other 3-D formats for charts in a Word document using Aspose.Words, you can access the Chart object and its associated ChartSeries. The ChartSeries class provides properties that allow you to customize various aspects of the chart, including 3-D effects.

Here’s a general approach to achieve this:

  1. Access the Chart: First, ensure you have a reference to the Chart object from your document.
  2. Modify 3-D Effects: Use the Format property of the ChartSeries to access and modify the 3-D effects. Specifically, you can set properties like Bubble3D to apply a 3-D effect to bubble charts.

Here’s a sample code snippet demonstrating how to set the 3-D effect for a chart series:

// Load the document
Document doc = new Document("YourDocument.docx");
DocumentBuilder builder = new DocumentBuilder(doc);

// Assuming you have a chart in the document
Shape chartShape = builder.InsertChart(ChartType.Column, 400, 300);
Chart chart = chartShape.Chart;

// Access the first series of the chart
ChartSeries series = chart.Series[0];

// Enable 3-D effect for the series
series.Bubble3D = true; // This applies a 3-D effect to bubble charts

// You can also modify other properties as needed
series.Format.Fill.Color = Color.Blue; // Change the fill color
series.Format.Line.Color = Color.Red; // Change the line color

// Save the modified document
doc.Save("ModifiedDocument.docx");

In this example, we enable the 3-D effect for the first series of the chart and change its fill and line colors. You can explore additional properties of the ChartSeries class to further customize your chart as needed.

For more detailed information, you can refer to the ChartSeries Class documentation which outlines all available properties and methods for customizing chart series in Aspose.Words.

If you have any specific settings in mind that you want to apply, please let me know!

@chris23 unfortunately, currently there is no public API to set chart element’s 3D format.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-27947

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Hi,

Thanks - not sure that helps though. Bubble3D is just a single boolean.

There are loads of options in Word, for example there are 12 bevel options here for starters:
image.png (8.1 KB)

I have spent some time exploring the options on the ChartSeries but can’t find corresponding options to those in Word. Maybe I am expecting too much though.

Are all these effects supported and if so could you point me to at least say the Top bevel setting and width and height for the bevel?

Thanks Alexey - sorry, I made my post before I saw yours.

1 Like