Within an python-pptx-generated XYchart, I would like to add labels to each point of the series. Code looks like this:
for p, v in zip(chart.series[0].points, dataSeries):
p.data_label.position = XL_LABEL_POSITION.ABOVE
p.data_label.text_frame.clear()
for paras in p.data_label.text_frame.paragraphs:
paras.font.size = Pt(10)
p.data_label.text_frame.text = str.format('{0:.1f}', v)
The new text is set correctly, but iterating through the paras to change font size has no effect. Any ideas how I could achieve a font size change for the labels?