Package com.aspose.slides

Examples of com.aspose.slides.IDataLabel


    series.getFormat().getFill().setFillType (FillType.Solid);
    series.getFormat().getFill().getSolidFillColor().setColor(Color.GREEN);

    //create custom labels for each of categories for new series
    //first label will be show Category name
    IDataLabel lbl = series.getDataPoints().get_Item(0).getLabel();
    lbl.getDataLabelFormat().setShowCategoryName(true);

    lbl = series.getDataPoints().get_Item(1).getLabel();
    lbl.getDataLabelFormat().setShowSeriesName(true);

    //Show value for third label
    lbl = series.getDataPoints().get_Item(2).getLabel();
    lbl.getDataLabelFormat().setShowValue(true);
    lbl.getDataLabelFormat().setShowSeriesName(true);
    lbl.getDataLabelFormat().setSeparator ("/");

    //Save presentation with chart
    pres.save("data/AsposeChart.pptx", SaveFormat.Pptx);
    System.out.println("Done");
  }
View Full Code Here


    point2.getFormat().getLine().setDashStyle(LineDashStyle.LargeDashDotDot);


    //Create custom labels for each of categories for new series

    IDataLabel lbl1 = series.getDataPoints().get_Item(0).getLabel();
    // lbl.ShowCategoryName = true;
    lbl1.getDataLabelFormat().setShowValue(true);


    IDataLabel lbl2 = series.getDataPoints().get_Item(1).getLabel();
    lbl2.getDataLabelFormat().setShowValue (true);
    lbl2.getDataLabelFormat().setShowLegendKey(true);
    lbl2.getDataLabelFormat().setShowPercentage(true);

    IDataLabel lbl3 = series.getDataPoints().get_Item(2).getLabel();
    lbl3.getDataLabelFormat().setShowSeriesName(true);
    lbl3.getDataLabelFormat().setShowPercentage (true);


    //Showing Leader Lines for Chart
    series.getLabels().getDefaultDataLabelFormat().setShowLeaderLines(true);
View Full Code Here

TOP

Related Classes of com.aspose.slides.IDataLabel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.