Package com.googlecode.charts4j

Examples of com.googlecode.charts4j.ScatterPlotData


    public void example1() {
        // EXAMPLE CODE START
        Data d1 = Data.newData(10, 50, 30, 45, 65, 95, 20, 80);
        Data d2 = Data.newData(20, 40, 40, 15, 85, 95, 80, 20);
        Data pointSizes = Data.newData(100, 30, 50, 75, 40, 35, 80, 100);
        ScatterPlotData data = Plots.newScatterPlotData(d1, d2, pointSizes);
        data.setLegend("Diamond");
        Color diamondColor = Color.newColor("FF471A");
        data.addShapeMarkers(Shape.DIAMOND, diamondColor, 30);
        data.setColor(diamondColor);
        ScatterPlot chart = GCharts.newScatterPlot(data);
        chart.setSize(600, 450);
        chart.setGrid(20, 20, 3, 2);

        AxisLabels axisLabels = AxisLabelsFactory.newNumericRangeAxisLabels(0, 100);
View Full Code Here

TOP

Related Classes of com.googlecode.charts4j.ScatterPlotData

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.