We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Words (.NET) - Bug with colors of Column3DStacked chart series in PDF format only

Hello, I have a purchased license.
I need to set custom colors for chart series, so I do the following:

        var shape = asposeBuilder.InsertChart(ChartType.Column3DStacked, 300, 400);

        var series1 = shape.Chart.Series.Add("series 1", new string[] { "category 1", "category 2" }, new[] { 1.0, 5.0 });
        var series2 = shape.Chart.Series.Add("series 2", new string[] { "category 1", "category 2" }, new[] { double.NaN, 0.5 });

        series1.Format.Fill.ForeColor = Color.Red;
        series2.Format.Fill.ForeColor = Color.Green;

In .docx format the chart renders correctly: image.png (3.9 KB)
But in .pdf here is a bug: image.png (19.7 KB)

@buryginl I was managed to reproduce your issue on my side. I have logged it as WORDSNET-23546 in our defect tracking system. We will keep you informed and let you know once it is resolved.

Hello, are there some updates about issue?

@buryginl The issue is already resolved in the current codebase. The fix will be included into the next 22.4 version of Aspose.Words. We will let you know once it is available.

The issues you have found earlier (filed as WORDSNET-23546) have been fixed in this Aspose.Words for .NET 22.4 update also available on NuGet.