Examples of JQPlot


Examples of nl.topicus.wqplot.components.JQPlot

  }

  @SuppressWarnings("unchecked")
  private void addChart2(StringNumberSeries<Integer> line)
  {
    JQPlot chart2 =
      new JQPlot("chart2", new ListModel<StringNumberSeries<Integer>>(Arrays.asList(line)));

    PlotOptions chart2O = chart2.getOptions();
    chart2O.getAxes().getXaxis().setAutoscale(true);
    chart2O.getAxes().getXaxis().setRenderer("$.jqplot.DateAxisRenderer");
    chart2O.getAxes().getXaxis().setLabel("Incliment Occurrance");
    chart2O.getAxes().getXaxis().setLabelRenderer("$.jqplot.CanvasAxisLabelRenderer");
    chart2O.getAxes().getXaxis().setTickRenderer("$.jqplot.CanvasAxisTickRenderer");
View Full Code Here

Examples of nl.topicus.wqplot.components.JQPlot

    l1.addEntry("10/8/2007", 637.39d);
    l1.addEntry("9/24/2007", 567.27d);
    l1.addEntry("9/10/2007", 528.75d);
    l1.addEntry("8/27/2007", 515.25d);

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

    Button button = new Button("button1");
    button.add(AttributeModifier.replace("onclick", new Model<String>(chart1.getMarkupId()
      + ".resetZoom()")));
    add(button);

    PlotSeries chart1series1 = chart1O.addNewSeries();
    chart1series1.setLabel("Google, Inc.");
View Full Code Here

Examples of nl.topicus.wqplot.components.JQPlot

    l3.addEntry(2770.0, 0.0);
    l3.addEntry(2780.0, 0.0);
    l3.addEntry(2790.0, 0.0);
    l3.addEntry(2800.0, 0.0);

    @SuppressWarnings("unchecked")
    JQPlot chart2 =
      new JQPlot("chart2", new ListModel<NumberSeries<Double, Double>>(Arrays.asList(l1, l2,
        l3)));
    chart2.setOutputMarkupId(true);
    PlotOptions chart2O = chart2.getOptions();
    chart2O.setTitle(new PlotTitle("Plot with Zooming and 3 Y Axes"));
    chart2O.getSeriesDefaults().setShowMarker(false);
    chart2O.getSeries().add(new PlotSeries());
    chart2O.addNewSeries().setYaxis("y2axis");
    chart2O.addNewSeries().setYaxis("y3axis");
View Full Code Here

Examples of nl.topicus.wqplot.components.JQPlot

  }

  @SuppressWarnings("unchecked")
  private void addChart1()
  {
    JQPlot chart1 =
      new JQPlot("chart1", new ListModel<SimpleNumberSeries<Integer>>(
        Arrays.asList(new SimpleNumberSeries<Integer>(2, 6, 7, 10))));

    PlotOptions chart1O = chart1.getOptions();
    chart1O.getSeriesDefaults().setRenderer(JQPlotBarRenderer.get());

    chart1O.getAxes().getXaxis().setRenderer(JQPlotCategoryAxisRenderer.get());
    chart1O.getAxes().getXaxis().setTicks("a", "b", "c", "d");
View Full Code Here

Examples of nl.topicus.wqplot.components.JQPlot

    {
      arr.addEntry(Math.round(Math.random() * 50), Math.round(Math.random() * 150),
        Math.round(400 + Math.random() * 900), makes[i]);
    }

    JQPlot chart1 =
      new JQPlot("chart1", new ListModel<BubbleSeries<Long, Long, Long, String>>(
        Arrays.asList(arr)));

    PlotOptions chart1O = chart1.getOptions();

    chart1O.setSortData(true);
    chart1O.setTitle("Bubble Test");
    chart1O.getSeriesDefaults().setRenderer(JQPlotBubbleRenderer.get());
    chart1O.getSeriesDefaults().setRendererOptions(
View Full Code Here

Examples of nl.topicus.wqplot.components.JQPlot

    series.add(new BezierCurveSeries<Double, Double, Double>(0d, 7d, Arrays.asList(2d, 9d, 4d,
      8d, 6d, 6d)));
    series.add(new BezierCurveSeries<Double, Double, Double>(0d, 8d, Arrays.asList(3d, 9d, 4d,
      8d, 6d, 8d)));

    JQPlot chart1 =
      new JQPlot("chart1", new ListModel<BezierCurveSeries<Double, Double, Double>>(series));

    PlotOptions chart1O = chart1.getOptions();
    chart1O.getSeriesDefaults().setRenderer(JQPlotBezierCurveRenderer.get());

    chart1O.getLegend().setShow(true);

    add(chart1);
View Full Code Here

Examples of nl.topicus.wqplot.components.JQPlot

    series.add(new BezierCurveSeries<Double, Double, Double>(0d, 7d, Arrays.asList(2d, 9d, 4d,
      8d, 6d, 6d)));
    series.add(new BezierCurveSeries<Double, Double, Double>(0d, 8d, Arrays.asList(3d, 9d, 4d,
      8d, 6d, 8d)));

    JQPlot chart2 =
      new JQPlot("chart2", new ListModel<BezierCurveSeries<Double, Double, Double>>(series));

    PlotOptions chart2O = chart2.getOptions();
    chart2O.getSeriesDefaults().setRenderer(JQPlotBezierCurveRenderer.get());

    chart2O.getLegend().setShow(true);

    add(chart2);
View Full Code Here

Examples of nl.topicus.wqplot.components.JQPlot

    series.add(new BaseSeries<String, Double>(new BaseSeriesEntry<String, Double>("01/01/2010",
      8d), new BaseSeriesEntry<String, Double>("02/01/2010", 9d),
      new BaseSeriesEntry<String, Double>("03/01/2010", 8d),
      new BaseSeriesEntry<String, Double>("04/01/2010", 8d)));

    JQPlot chart3 = new JQPlot("chart3", new ListModel<BaseSeries<String, Double>>(series));

    PlotOptions chart3O = chart3.getOptions();
    chart3O.getSeriesDefaults().setRenderer(JQPlotBezierCurveRenderer.get());
    chart3O.getAxes().getXaxis().setRenderer(JQPlotDateAxisRenderer.get()).setNumberTicks(4);
    chart3O.getLegend().setShow(true);

    add(chart3);
View Full Code Here

Examples of nl.topicus.wqplot.components.JQPlot

    line4.addEntry(2006, 2);
    line4.addEntry(2007, 5);
    line4.addEntry(2008, 4);
    line4.addEntry(2009, 9);

    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")
View Full Code Here

Examples of nl.topicus.wqplot.components.JQPlot

  {
    List<SimpleNumberSeries<Integer>> lines = new ArrayList<SimpleNumberSeries<Integer>>();
    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);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.