I have a template slide having two pie-charts. I need to change chart data for the charts. I am new to python pptx so not sure how I approach it.I have following code where i have entered the loop where I have the chart shape:
prs = Presentation(pptFilepath)
for slide,site in zip(prs.slides,sites):
for shape in slide.shapes:
print(shape.name)
if shape.has_chart:
print("yes")
This results in two yes meaning I have two charts. but how do I access the chart data and how can I change it as per my liking?