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

Free Support Forum - aspose.com

Add GroupShape to Chart


Can you help me to add the GroupShape to the Chart not to the slide with some example?


Hi Partik,

I have observed your requirements and suggest you to please try using following sample code on your end for adding group shapes in chart.

Presentation pres = new Presentation();

IChart chart = pres.getSlides().get_Item(0).getShapes().addChart(ChartType.ClusteredBar, 20, 20, 400, 400);
chart.getUserShapes().getShapes().addAutoShape(ShapeType.Line, 30, 30, 200, 200);

pres.save(“resultPres.pptx”, SaveFormat.Pptx );

Many Thanks,