You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using a doughnut chart in python-pptx; I want to set the datalabels to br away from the chart (exactly 2 inches) as datalabel position is not sufficient, I am lloking for other alternatives:
for idx, point in enumerate(chart.series[0].points):
dl = point.data_label
dl.text_frame.text = f"{chart_data.categories[idx].label}"
dl.show_leader_line = true
for para in dl.text_frame.paragraphs:
for rune in para.runs:
rune.font.size = Pt(int(shape_filled_text_ls[1])
#set this datalabel 2 inches away from chart center so that leader lines are visible
The text was updated successfully, but these errors were encountered:
I am using a doughnut chart in python-pptx; I want to set the datalabels to br away from the chart (exactly 2 inches) as datalabel position is not sufficient, I am lloking for other alternatives:
The text was updated successfully, but these errors were encountered: