Package com.googlecode.charts4j

Examples of com.googlecode.charts4j.RadarPlot


            x[cnt] = Math.sin(i / 4);
            x1[cnt] = 20;
            cnt++;
        }

        final RadarPlot plot1 = Plots.newRadarPlot(DataUtil.scale(x), Color.newColor("3D5593"));
        plot1.setFillAreaColor(Color.newColor("8FA3D6"));
        final RadarPlot plot2 = Plots.newRadarPlot(Data.newData(x1));
        plot2.setFillAreaColor(Color.newColor("3D5593"));
        for (int i = 0; i < count; i = i + 20) {
            plot2.addShapeMarker(Shape.CIRCLE, PINK, 20, i);
        }
        final RadarChart chart = GCharts.newRadarChart(plot1, plot2);
        chart.setBackgroundFill(Fills.newSolidFill(Color.newColor("504227")));
        chart.setSpline(true);
        chart.setDataEncoding(DataEncoding.SIMPLE);
View Full Code Here


    }

    @Test
    public void example2() {
        // EXAMPLE CODE START
        RadarPlot plot = Plots.newRadarPlot(Data.newData(80, 50, 50, 80, 60, 80));
        Color plotColor = Color.newColor("CC3366");
        plot.addShapeMarkers(Shape.SQUARE, plotColor, 12);
        plot.addShapeMarkers(Shape.SQUARE, WHITE, 8);
        plot.setColor(plotColor);
        plot.setLineStyle(LineStyle.newLineStyle(4, 1, 0));
        RadarChart chart = GCharts.newRadarChart(plot);
        chart.setTitle("Simple Radar Chart", BLACK, 20);
        chart.setSize(400, 400);
        RadialAxisLabels radialAxisLabels = AxisLabelsFactory.newRadialAxisLabels("Maths", "Arts", "French", "German", "Music");
        radialAxisLabels.setRadialAxisStyle(BLACK, 12);
View Full Code Here

TOP

Related Classes of com.googlecode.charts4j.RadarPlot

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.