Package com.aspose.cells

Examples of com.aspose.cells.ChartPoint


    chart.getNSeries().setCategoryData("Data!A2:A8");

    //Set the fill colors for the series's data points (France - Portugal(7 points))
    ChartPointCollection chartPoints = chart.getNSeries().get(0).getPoints();

    ChartPoint point = chartPoints.get(0);
    point.getArea().setForegroundColor(Color.getCyan());

    point = chartPoints.get(1);
    point.getArea().setForegroundColor(Color.getBlue());

    point = chartPoints.get(2);
    point.getArea().setForegroundColor(Color.getYellow());

    point = chartPoints.get(3);
    point.getArea().setForegroundColor(Color.getRed());

    point = chartPoints.get(4);
    point.getArea().setForegroundColor(Color.getBlack());

    point = chartPoints.get(5);
    point.getArea().setForegroundColor(Color.getGreen());

    point = chartPoints.get(6);
    point.getArea().setForegroundColor(Color.getMaroon());

    //Set the legend invisible
    chart.setShowLegend(false);

    //Get the Chart image
View Full Code Here

TOP

Related Classes of com.aspose.cells.ChartPoint

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.