Chart Data Table
Contents
[
Hide
]
Set Font Properties for Chart Data Table
Aspose.Slides for Python via .NET provides support for changing color of categories in a series color.
- Instantiate Presentation class object.
- Add chart on the slide.
- set chart table.
- Set font height.
- Save modified presentation.
Below sample example is given.
import aspose.slides.charts as charts
import aspose.slides as slides
with slides.Presentation() as pres:
chart = pres.slides[0].shapes.add_chart(charts.ChartType.CLUSTERED_COLUMN, 50, 50, 600, 400)
chart.has_data_table = True
chart.chart_data_table.text_format.portion_format.font_bold = 1
chart.chart_data_table.text_format.portion_format.font_height = 20
pres.save("output.pptx", slides.export.SaveFormat.PPTX)