Package com.googlecode.charts4j

Examples of com.googlecode.charts4j.XYLine


        Data x = DataUtil.scale(xData);
        Data max = DataUtil.scaleWithinRange(minMin, maxMax, maxData);
        Data mean = DataUtil.scaleWithinRange(minMin, maxMax, meanData);
        Data min = DataUtil.scaleWithinRange(minMin, maxMax, minData);

        XYLine maxLine = Plots.newXYLine(x, max);
        maxLine.addShapeMarkers(Shape.SQUARE, Color.GRAY, 2);
        maxLine.setColor(Color.RED);
        maxLine.setLineStyle(LineStyle.THIN_LINE);
        maxLine.setLegend("Max");

        XYLine meanLine = Plots.newXYLine(x, mean);
        meanLine.addShapeMarkers(Shape.SQUARE, Color.GRAY, 2);
        meanLine.setColor(Color.YELLOW);
        meanLine.setLineStyle(LineStyle.THIN_LINE);
        meanLine.setLegend("Mean");

        XYLine minLine = Plots.newXYLine(x, min);
        minLine.addShapeMarkers(Shape.SQUARE, Color.GRAY, 2);
        minLine.setColor(Color.GREEN);
        minLine.setLineStyle(LineStyle.THIN_LINE);
        minLine.setLegend("Min");


        String title = String.format("%s (k=%d, %d trials per data point)", estimator, k, NUM_TRIALS);
        XYLineChart chart = GCharts.newXYLineChart(maxLine, meanLine, minLine);
View Full Code Here


            cnt++;
        }

        Data data1 = Data.newData(x);
        Data data2 = Data.newData(y);
        XYLine line = Plots.newXYLine(data1, data2);
        line.setColor(Color.newColor("27FEF6"));
        XYLineChart chart = GCharts.newXYLineChart(line);
        chart.setSize(500, 500);
        chart.setTitle("Lissajous curve", WHITE, 16);
        chart.setBackgroundFill(Fills.newSolidFill(Color.newColor("121411")));
        String url = chart.toURLString();
View Full Code Here

TOP

Related Classes of com.googlecode.charts4j.XYLine

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.