Chart Data Table

Set Font Properties for Chart Data Table

Aspose.Slides for Java 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. 

// Creating empty presentation
Presentation pres = new Presentation();
try {
    IChart chart = pres.getSlides().get_Item(0).getShapes().addChart(ChartType.ClusteredColumn, 50, 50, 600, 400);

    chart.setDataTable(true);

    chart.getChartDataTable().getTextFormat().getPortionFormat().setFontBold(NullableBool.True);
    chart.getChartDataTable().getTextFormat().getPortionFormat().setFontHeight(20);

    pres.save("output.pptx", SaveFormat.Pptx);
} finally {
    if (pres != null) pres.dispose();
}