Package org.primefaces.model.chart

Examples of org.primefaces.model.chart.LineChartSeries


   
 
    private void createLinearModel() { 
        linearModel = new CartesianChartModel()
 
        LineChartSeries series1 = new LineChartSeries()
        series1.setLabel("Series 1")
 
        series1.set(1, 2)
        series1.set(2, 1)
        series1.set(3, 3)
        series1.set(4, 6)
        series1.set(5, 8)
 
        LineChartSeries series2 = new LineChartSeries()
        series2.setLabel("Series 2")
        series2.setMarkerStyle("diamond")
 
        series2.set(1, 6)
        series2.set(2, 3)
        series2.set(3, 2)
        series2.set(4, 7)
        series2.set(5, 9)
 
        linearModel.addSeries(series1)
        linearModel.addSeries(series2)
   
View Full Code Here


            ChartSeries series = (ChartSeries) it.next();

            writer.write("{");
            writer.write("label:'" + series.getLabel() + "'");
            if(series instanceof LineChartSeries) {
                LineChartSeries  lineChartSeries = (LineChartSeries) series;
                writer.write(",showLine:" + lineChartSeries.isShowLine());
                writer.write(",markerOptions:{style:'" + lineChartSeries.getMarkerStyle() + "'}");
            }
            writer.write("}");

            if(it.hasNext()) {
                writer.write(",");
View Full Code Here

        return model;
    }
    private LineChartModel initLinearModel() {
        LineChartModel model = new LineChartModel();
        LineChartSeries series1 = new LineChartSeries();
        series1.setLabel("Series 1");
        series1.set(1, 2);
        series1.set(2, 1);
        series1.set(3, 3);
        series1.set(4, 6);
        series1.set(5, 8);
        LineChartSeries series2 = new LineChartSeries();
        series2.setLabel("Series 2");
        series2.set(1, 6);
        series2.set(2, 3);
        series2.set(3, 2);
        series2.set(4, 7);
        series2.set(5, 9);
        model.addSeries(series1);
        model.addSeries(series2);
        
        return model;
View Full Code Here

           
            writer.write("{");
            writer.write("label:'" + series.getLabel() + "'");

            if(series instanceof LineChartSeries) {
                LineChartSeries  lineChartSeries = (LineChartSeries) series;
                writer.write(",showLine:" + lineChartSeries.isShowLine());
                writer.write(",markerOptions:{show:" + chart.isShowMarkers()+ ", style:'" + lineChartSeries.getMarkerStyle() + "'}");
            }
            if(seriesRenderer != null) {
                writer.write(",renderer: $.jqplot." + seriesRenderer);
            }
            if(fill) {
View Full Code Here

TOP

Related Classes of org.primefaces.model.chart.LineChartSeries

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.