Chart Data Table

Set Font Properties for Chart Data Table

Aspose.Slides for Python via .NET provides support for changing color of categories in a series color. 

  1. Instantiate Presentation class object.
  2. Add chart on the slide.
  3. set chart table.
  4. Set font height.
  5. 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)