Package com.invient.vaadin.charts.Color

Examples of com.invient.vaadin.charts.Color.RGB


        legend.getPosition().setAlign(HorzAlign.LEFT);
        legend.getPosition().setVertAlign(VertAlign.TOP);
        legend.getPosition().setX(150);
        legend.getPosition().setY(100);
        legend.setBorderWidth(1);
        legend.setBackgroundColor(new RGB(255, 255, 255));
        chartConfig.setLegend(legend);

        CategoryAxis xAxis = new CategoryAxis();
        xAxis.setCategories(Arrays.asList("Apples", "Pears", "Oranges",
                "Bananas", "Grapes", "Plums", "Strawberries", "Raspberries"));
View Full Code Here


                                + " return ''+ this.x +': '+ $wnd.Highcharts.numberFormat(this.y, 0, ',') +' millions';"
                                + "}");

        AreaConfig areaCfg = new AreaConfig();
        areaCfg.setStacking(Stacking.NORMAL);
        areaCfg.setLineColor(new RGB(102, 102, 102));
        areaCfg.setLineWidth(1);

        SymbolMarker marker = new SymbolMarker();
        marker.setLineColor(new RGB(102, 102, 102));
        marker.setLineWidth(1);
        areaCfg.setMarker(marker);

        chartConfig.addSeriesConfig(areaCfg);
View Full Code Here

                                + "    '% ('+ $wnd.Highcharts.numberFormat(this.y, 0, ',') +' millions)'; "
                                + "}");

        AreaConfig areaCfg = new AreaConfig();
        areaCfg.setStacking(Stacking.PERCENT);
        areaCfg.setLineColor(new RGB(255, 255, 255));
        areaCfg.setLineWidth(1);

        SymbolMarker marker = new SymbolMarker();
        marker.setLineColor(new RGB(255, 255, 255));
        marker.setLineWidth(1);
        areaCfg.setMarker(marker);

        chartConfig.addSeriesConfig(areaCfg);
View Full Code Here

        legendPos.setX(150);
        legendPos.setY(100);
        legend.setPosition(legendPos);
        legend.setFloating(true);
        legend.setBorderWidth(1);
        legend.setBackgroundColor(new RGB(255, 255, 255));
        chartConfig.setLegend(legend);

        CategoryAxis xAxis = new CategoryAxis();
        xAxis.setCategories(Arrays.asList("Monday", "Tuesday", "Wednesday",
                "Thursday", "Friday", "Saturday", "Sunday"));
View Full Code Here

        pieCfg.setInnerSize(65);
        pieCfg.setDataLabel(new PieDataLabel(false));

        XYSeries series = new XYSeries("2008", SeriesType.PIE, pieCfg);
        LinkedHashSet<DecimalPoint> points = new LinkedHashSet<DecimalPoint>();
        points.add(getPointWithColor(series, "Firefox", 44.2, new RGB(69, 114,
                167)));
        points.add(getPointWithColor(series, "IE", 46.6, new RGB(170, 70, 67)));
        points.add(getPointWithColor(series, "Chrome", 3.1, new RGB(137, 165,
                78)));
        points.add(getPointWithColor(series, "Safari", 2.7, new RGB(128, 105,
                155)));
        points.add(getPointWithColor(series, "Opera", 2.3, new RGB(128, 105,
                155)));
        points.add(getPointWithColor(series, "Mozilla", 0.4, new RGB(219, 132,
                61)));
        series.setSeriesPoints(points);

        chart.addSeries(series);

        // Series 1
        pieCfg = new PieConfig();
        pieCfg.setInnerSize(150);
        pieCfg.setDataLabel(new PieDataLabel());
        pieCfg.setColor(new RGB(0, 0, 0));
        pieCfg.getDataLabel().setConnectorColor(new RGB(0, 0, 0));

        series = new XYSeries("2010", SeriesType.PIE, pieCfg);
        points = new LinkedHashSet<DecimalPoint>();
        points.add(getPointWithColor(series, "Firefox", 45.0, new RGB(69, 114,
                167)));
        points.add(getPointWithColor(series, "IE", 26.8, new RGB(170, 70, 67)));
        points.add(getPointWithColor(series, "Chrome", 12.8, new RGB(137, 165,
                78)));
        points.add(getPointWithColor(series, "Safari", 8.5, new RGB(128, 105,
                155)));
        points.add(getPointWithColor(series, "Opera", 6.2, new RGB(128, 105,
                155)));
        points.add(getPointWithColor(series, "Mozilla", 0.2, new RGB(219, 132,
                61)));
        series.setSeriesPoints(points);

        chart.addSeries(series);
View Full Code Here

        pieCfg.getDataLabel()
                .setFormatterJsFunc(
                        "function() {"
                                + " return '<b>'+ this.point.name +'</b>: '+ this.y +' %';"
                                + "}");
        pieCfg.getDataLabel().setConnectorColor(new RGB(0, 0, 0));

        chartConfig.addSeriesConfig(pieCfg);

        InvientCharts chart = new InvientCharts(chartConfig);
View Full Code Here

        legendPos.setX(100);
        legendPos.setY(70);
        legend.setPosition(legendPos);
        legend.setFloating(true);
        legend.setBorderWidth(1);
        legend.setBackgroundColor(new RGB(255, 255, 255));
        chartConfig.setLegend(legend);

        ScatterConfig scatterCfg = new ScatterConfig();

        SymbolMarker marker = new SymbolMarker(5);
        scatterCfg.setMarker(marker);
        marker.setHoverState(new MarkerState());
        marker.getHoverState().setEnabled(true);
        marker.getHoverState().setLineColor(new RGB(100, 100, 100));
        chartConfig.addSeriesConfig(scatterCfg);

        InvientCharts chart = new InvientCharts(chartConfig);

        ScatterConfig femaleScatterCfg = new ScatterConfig();
View Full Code Here

        chartConfig.setTooltip(tooltip);

        SplineConfig splineCfg = new SplineConfig();
        SymbolMarker symbolMarker = new SymbolMarker(true);
        symbolMarker.setRadius(4);
        symbolMarker.setLineColor(new RGB(102, 102, 102));
        symbolMarker.setLineWidth(1);
        splineCfg.setMarker(symbolMarker);
        chartConfig.addSeriesConfig(splineCfg);

        InvientCharts chart = new InvientCharts(chartConfig);
View Full Code Here

        yAxis.setTitle(new AxisTitle("Value"));
        NumberPlotLine plotLine;
        yAxis.addPlotLine(plotLine = new NumberPlotLine("LineAt0"));
        plotLine.setValue(new NumberValue(0.0));
        plotLine.setWidth(1);
        plotLine.setColor(new RGB(128, 128, 128));
        LinkedHashSet<YAxis> yAxes = new LinkedHashSet<InvientChartsConfig.YAxis>();
        yAxes.add(yAxis);
        chartConfig.setYAxes(yAxes);

        chartConfig
View Full Code Here

        pieCfg.setDataLabel(new PieDataLabel());
        pieCfg.getDataLabel().setEnabled(false);

        XYSeries totalConsumpSeriesData = new XYSeries("Total consumption",
                SeriesType.PIE, pieCfg);
        PointConfig config = new PointConfig(new RGB(69, 114, 167));
        DecimalPoint point = new DecimalPoint(totalConsumpSeriesData, "Jane",
                13, config);
        totalConsumpSeriesData.addPoint(point);
        config = new PointConfig(new RGB(170, 70, 67));
        point = new DecimalPoint(totalConsumpSeriesData, "John", 23, config);
        totalConsumpSeriesData.addPoint(point);
        config = new PointConfig(new RGB(137, 165, 78));
        point = new DecimalPoint(totalConsumpSeriesData, "Joe", 19, config);
        totalConsumpSeriesData.addPoint(point);

        ChartLabel chartLabel = new ChartLabel();
        chartLabel.addLabel(new ChartLabelItem("Total fruit consumption",
View Full Code Here

TOP

Related Classes of com.invient.vaadin.charts.Color.RGB

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.