Chart Data Table

Set Font Properties for Chart Data Table

Aspose.Slides for Node.js via 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
var pres = new aspose.slides.Presentation();
try {
    var chart = pres.getSlides().get_Item(0).getShapes().addChart(aspose.slides.ChartType.ClusteredColumn, 50, 50, 600, 400);
    chart.setDataTable(true);
    chart.getChartDataTable().getTextFormat().getPortionFormat().setFontBold(aspose.slides.NullableBool.True);
    chart.getChartDataTable().getTextFormat().getPortionFormat().setFontHeight(20);
    pres.save("output.pptx", aspose.slides.SaveFormat.Pptx);
} finally {
    if (pres != null) {
        pres.dispose();
    }
}