Package nl.topicus.wqplot.options

Examples of nl.topicus.wqplot.options.PlotOptions


    JQPlot chart1 =
      new JQPlot("chart1", new ListModel<NumberSeries<Integer, Integer>>(Arrays.asList(line1,
        line2, line3, line4)));

    PlotOptions chart1O = chart1.getOptions();
    chart1O.getSeriesDefaults().setRenderer("$.jqplot.BarRenderer");
    chart1O.getSeriesDefaults().setRendererOptions(
      new PlotBarRendererOptions().setBarPadding(10d).setBarMargin(10d));
    chart1O.getLegend().setShow(true).setLocation(PlotLegendLocation.nw);
    chart1O.getAxes().getXaxis().setRenderer("$.jqplot.CategoryAxisRenderer")
      .setRendererOptions(new PlotAxisRendererOptions().setSortMergedLabels(true));
    chart1O.getAxes().getYaxis().setMin(0).setMax(20).setNumberTicks(6);

    add(chart1);
  }
View Full Code Here


    lines.add(new SimpleNumberSeries<Integer>(4, 3, 9, 16, 12, 8));
    lines.add(new SimpleNumberSeries<Integer>(null, null, null, 3, 7, 6));

    JQPlot chart2 = new JQPlot("chart2", new ListModel<SimpleNumberSeries<Integer>>(lines));

    PlotOptions chart2O = chart2.getOptions();
    chart2O.getSeriesDefaults();
    chart2O.getLegend().setShow(true).setLocation(PlotLegendLocation.nw);
    chart2O.getAxes().getXaxis().setRenderer("$.jqplot.CategoryAxisRenderer")
      .setTicks(2006, 2007, 2008, 2009, 2010, 2011);
    chart2O.getAxes().getYaxis().setMin(0).setMax(20).setNumberTicks(6);

    add(chart2);
  }
View Full Code Here

      l1.addEntry(i, Math.cos(i));

    @SuppressWarnings("unchecked")
    JQPlot chart1 =
      new JQPlot("chart1", new ListModel<NumberSeries<Double, Double>>(Arrays.asList(l1)));
    PlotOptions chart1O = chart1.getOptions();

    PlotSeries chart1series1 = chart1O.addNewSeries();
    chart1series1.setShowMarker(false);

    chart1O.getAxes().getXaxis().setLabel("Angle (radians)");
    chart1O.getAxes().getXaxis().setAutoscale(true);
    chart1O.getAxes().getYaxis().setLabel("Cosine");
    chart1O.getAxes().getYaxis().setAutoscale(true);

    add(chart1);
  }
View Full Code Here

      l1.addEntry(i, Math.cos(i));

    @SuppressWarnings("unchecked")
    JQPlot chart2 =
      new JQPlot("chart2", new ListModel<NumberSeries<Double, Double>>(Arrays.asList(l1)));
    PlotOptions chart2O = chart2.getOptions();

    PlotSeries chart2series1 = chart2O.addNewSeries();
    chart2series1.setShowMarker(false);

    chart2O.getAxes().getXaxis().setLabel("Angle (radians)");
    chart2O.getAxes().getXaxis().setAutoscale(true);
    chart2O.getAxes().getXaxis().setLabelRenderer("$.jqplot.CanvasAxisLabelRenderer");
    chart2O.getAxes().getYaxis().setLabel("Cosine");
    chart2O.getAxes().getYaxis().setAutoscale(true);
    chart2O.getAxes().getYaxis().setLabelRenderer("$.jqplot.CanvasAxisLabelRenderer");

    add(chart2);
  }
View Full Code Here

      l1.addEntry(i, Math.cos(i));

    @SuppressWarnings("unchecked")
    JQPlot chart3 =
      new JQPlot("chart3", new ListModel<NumberSeries<Double, Double>>(Arrays.asList(l1)));
    PlotOptions chart3O = chart3.getOptions();

    PlotSeries chart3series1 = chart3O.addNewSeries();
    chart3series1.setShowMarker(false);

    chart3O.getAxes().getXaxis().setLabel("Angle (radians)");
    chart3O.getAxes().getXaxis().setAutoscale(true);
    chart3O.getAxes().getXaxis().setLabelRenderer("$.jqplot.CanvasAxisLabelRenderer");
    chart3O.getAxes().getXaxis().getLabelOptions().setEnableFontSupport(true);
    chart3O.getAxes().getXaxis().getLabelOptions().setFontFamily("Georgia");
    chart3O.getAxes().getXaxis().getLabelOptions().setFontSize("12pt");
    chart3O.getAxes().getYaxis().setLabel("Cosine");
    chart3O.getAxes().getYaxis().setAutoscale(true);
    chart3O.getAxes().getYaxis().setLabelRenderer("$.jqplot.CanvasAxisLabelRenderer");
    chart3O.getAxes().getYaxis().getLabelOptions().setEnableFontSupport(true);
    chart3O.getAxes().getYaxis().getLabelOptions().setFontFamily("Georgia");
    chart3O.getAxes().getYaxis().getLabelOptions().setFontSize("12pt");

    add(chart3);
  }
View Full Code Here

    chart1series.add(new SimpleNumberSeries<Integer>(12, 6, 13, 11, 2));

    JQPlot chart1b =
      new JQPlot("chart1b", new ListModel<SimpleNumberSeries<Integer>>(chart1series));

    PlotOptions chart1bO = chart1b.getOptions();
    chart1bO.setStackSeries(true);
    chart1bO.getSeriesDefaults().setFill(true);
    chart1bO.getAxes().getXaxis().setRenderer("$.jqplot.CategoryAxisRenderer");
    chart1bO.getAxes().getXaxis().setTicks("Mon", "Tue", "Wed", "Thu", "Fri");

    add(chart1b);

    final WebMarkupContainer info1b = new WebMarkupContainer("info1b");
    info1b.setOutputMarkupId(true);
View Full Code Here

    chart2series.add(new SimpleNumberSeries<Integer>(4, -3, 3, 6, 2, -2));

    JQPlot chart1c =
      new JQPlot("chart1c", new ListModel<SimpleNumberSeries<Integer>>(chart2series));

    PlotOptions chart1cO = chart1c.getOptions();
    chart1cO.setStackSeries(true);
    chart1cO.getSeriesDefaults().setFill(true);
    chart1cO.getSeriesDefaults().setFillToZero(true);
    chart1cO.getSeriesDefaults().setRendererOptions(
      new PlotLineRendererOptions().setHighlightMouseDown(true));

    add(chart1c);

    final WebMarkupContainer info1c = new WebMarkupContainer("info1c");
View Full Code Here

    lines.add(new SimpleNumberSeries<Integer>(23, 53, 13, null, 18, 25, 26, 41, 42, null, null,
      null, 37, 29, 27, 19));

    JQPlot chart1 = new JQPlot("chart1", new ListModel<SimpleNumberSeries<Integer>>(lines));

    PlotOptions chart1O = chart1.getOptions();
    chart1O.setTitle("Default Line, ignore nulls");

    add(chart1);
  }
View Full Code Here

    lines.add(new SimpleNumberSeries<Integer>(23, 53, 13, null, 18, 25, 26, 41, 42, null, null,
      null, 37, 29, 27, 19));

    JQPlot chart1b = new JQPlot("chart1b", new ListModel<SimpleNumberSeries<Integer>>(lines));

    PlotOptions chart1bO = chart1b.getOptions();
    chart1bO.setTitle("breakOnNull true, Nulls Break Line");
    chart1bO.addNewSeries().setBreakOnNull(true);

    add(chart1b);
  }
View Full Code Here

    line.addEntry(4, 10);
    lines.add(line);

    JQPlot chart2 = new JQPlot("chart2", new ListModel<NumberSeries<Integer, Integer>>(lines));

    PlotOptions chart2O = chart2.getOptions();
    chart2O.getSeriesDefaults().setRenderer("$.jqplot.BarRenderer");
    chart2O.getAxes().getXaxis().setRenderer("$.jqplot.CategoryAxisRenderer");

    add(chart2);
  }
View Full Code Here

TOP

Related Classes of nl.topicus.wqplot.options.PlotOptions

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.