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

Free Support Forum - aspose.com

Pie chart colors

Hello.
I need to get pie chart colors.
I tried to do like a this http://www.aspose.com/docs/display/slidesnet/Setting+Pie+Chart+Sector+Colors
But my chart haven't any point. Could you help?
My code:

var pres = new PresentationEx("D:\\1.pptx");
var pieChart = (ChartEx)pres.Slides[0].Shapes[0];
foreach (ChartPointEx point in pieChart.ChartData.Series.OfType().SelectMany(_ => _.Points.OfType()))
{
Console.WriteLine(point.Format.Fill.SolidFillColor.Color);
}

1.pptx atached

Hi,

I have worked with the presentation file shared by you and have been able to observe the issue specified while accessing the chart series points. An issue with ID SLIDESNET-34543 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be automatically notified once the issue will be resolved.

We are sorry for your inconvenience,