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

Free Support Forum - aspose.com

Please provide an example to create mixed series (types) in powerpoint

Please provide an example to create mixed series (types) in powerpoint.

I am trying to use SeriesOfMixedTypes. But i can’t assign this value. I can add series of mulitple types but by changing the chart type all the time. But in the end all series have the same type as the last set charttype.

Attached is an exampe in excel of the kind of chart i would like to create in powerpoint.

Thanks in advance,

Hi Juri,

Thank you for the details.

Please see the following sample code to create chart with multiple series. However, there is an issue when creating ScatterWithMarkers chart type is not working at the moment. An issue has already been registered in our issue tracking system with issue id:
SLIDESNET-35855. You will be notified via this forum thread once the issue gets resolved.

var presentation = new Presentation();

var slides = presentation.Slides;

var slide = slides[0];

var chart = slide.Shapes.AddChart(ChartType.ClusteredColumn, 0, 0, 500, 300);

var data = chart.ChartData;

var series = data.Series[0];

series = data.Series[1];

series.Type = ChartType.LineWithMarkers;

series.Marker.Size = 5;

series.Marker.Symbol = MarkerStyleType.Square;

series.Marker.Format.Fill.FillType = FillType.Solid;

series.Marker.Format.Fill.SolidFillColor.Color = Color.Red;

series.Format.Fill.FillType = FillType.Solid;

series.Format.Fill.SolidFillColor.Color = Color.Red;

series.PlotOnSecondAxis = false;

presentation.Save(“d:\data\test.pptx”, SaveFormat.Pptx);

Thanks & Regards,