Free Support Forum - aspose.com

Unable to set CategoryAxis Line Color for a ClusteredBar ChartEx

Hello,


I am executing the following:
ChartEx lChart = pSlide.Shapes.AddChart(ChartTypeEx.ClusteredBar, 100, 100, 600, 400);
lChart.CategoryAxis.Format.Line.FillFormat.SolidFillColor.Color = System.Drawing.Color.FromArgb(217, 217, 217);

CategoryAxis.Format class is set to null, and am receiving a “System.NullReferenceException: Object reference not set to an instance of an object.” error message.

Thank you,
Pierre

Hi,


Is there any other way to set the color of the CategoryAxis?

Thanks,
Pierre

Hi Pierre,


I like to share that the issue shared has been resolved in Aspose.Slides for .NET 7.1.0 and it will be shared by tomorrow hopefully.

Many Thanks,

Thank you Mudassir!

Hi Pierre,


I like to share that the Aspose.Slides for .NET 7.1.0 has been released. Please proceed to this link for downloading the latest version.

Many Thanks,

Thanks for the update!


Pierre