font property
ChartDataLabel.font property
Provides access to the font formatting of this data label.
@property
def font(self) -> aspose.words.Font:
...
Examples
Shows how to use 3D effects with bubble charts.
doc = aw.Document()
builder = aw.DocumentBuilder(doc=doc)
shape = builder.insert_chart(chart_type=aw.drawing.charts.ChartType.BUBBLE_3D, width=500, height=350)
chart = shape.chart
self.assertEqual(1, chart.series.count)
self.assertEqual('Y-Values', chart.series[0].name)
self.assertTrue(chart.series[0].bubble_3d)
# Apply a data label to each bubble that displays its diameter.
i = 0
while i < 3:
chart.series[0].has_data_labels = True
chart.series[0].data_labels[i].show_bubble_size = True
chart.series[0].data_labels[i].font.size = 12
i += 1
doc.save(file_name=ARTIFACTS_DIR + 'Charts.Bubble3D.docx')
See Also
- module aspose.words.drawing.charts
- class ChartDataLabel