Chart Data Table
Contents
[
Hide
]
Set Font Properties for Chart Data Table
Aspose.Slides for .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.
using (Presentation pres = new Presentation("test.pptx"))
{
IChart chart = pres.Slides[0].Shapes.AddChart(ChartType.ClusteredColumn, 50, 50, 600, 400);
chart.HasDataTable = true;
chart.ChartDataTable.TextFormat.PortionFormat.FontBold = NullableBool.True;
chart.ChartDataTable.TextFormat.PortionFormat.FontHeight = 20;
pres.Save("output.pptx", SaveFormat.Pptx);
}