I am trying this way to create a map chart. But unfortunately getting a blank slide.
import aspose.slides as slides
with slides.Presentation() as pres:
chart = pres.slides[0].shapes.add_chart(slides.charts.ChartType.MAP, 50, 50, 500, 400, False)
pres.save("mapChart.pptx", slides.export.SaveFormat.PPTX)
Also, I have tried to clone a chart from another ppt. It shows as a picture frame instead of a chart object.
This issue is mainly faced for map and map tree charts
using aspose python version: Aspose.Slides== 22.12.0
ubuntu: 22.04
@anantutkpd,
Unfortunately, the code example above throws a NullReferenceException error on my end. Could you please confirm that this is also happening on your end?
Here in the screenshot, you can see that an OLE object (ChartObject) was created but it’s not visible.
I have faced the same issue when I clone a chart shape from another pptx (This feature is what I really want). This issue is only for map charts. No issue with another type of chart.
@anantutkpd,
Please see how the slide from your mapChart.pptx document looks like in my PowerPoint: MapChart.png (90.9 KB)
Please note that you must be online to display the Map chart in PowerPoint and it takes some time to display.
I was unable to reproduce this problem with Aspose.Slides 22.12. Please share the following:
input and output presentation files
code example that reproduces the problem
It will be great if you create a new forum thread for this issue.