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

Free Support Forum - aspose.com

ArgumentOutOfRangeException on chart.ValidateChartLayout after clearing ChartData.Series

Dear aspose support,
after programatically adding a chart, clearing its ChartData.Series and calling ValidateChartLayout, an ArgumentOutOfRangeException is thrown.
Could you please look into that, code to reproduce is as follows:

Aspose.Slides.Presentation p = new Aspose.Slides.Presentation();
var slide = p.Slides.AddEmptySlide(p.LayoutSlides[0]);
var chart = slide.Shapes.AddChart(Aspose.Slides.Charts.ChartType.PercentsStackedBar, 0, 0, 100, 100);

I am using the current version of aspose.slides for dot.net: but it can also be reproduced in the 19.* versions.

Thank you for your time
K. Witt


I have been able to reproduce the issue using Aspose.Slides for .NET 20.6 and it seems to be an issue. A ticket with ID SLIDESNET-42012 has been created to further investigate and resolve the issue. This thread has been linked with the issue so that we may apprise you as soon as the issue will be fixed.

The issues you have found earlier (filed as SLIDESNET-42012) have been fixed in this update.