Examples of PlotOptions


Examples of nl.topicus.wqplot.options.PlotOptions

    series.add(l3);

    JQPlot chart2b =
      new JQPlot("chart2b", new ListModel<NumberSeries<Integer, Integer>>(series));

    PlotOptions chart2bO = chart2b.getOptions();
    chart2bO.getSeriesDefaults().setRenderer(JQPlotBarRenderer.get());
    chart2bO.getSeriesDefaults().getPointLabels().setShow(true);
    chart2bO.getSeriesDefaults().getPointLabels().setLocation(PlotPointLabelLocation.e);
    chart2bO.getSeriesDefaults().getPointLabels().setEdgeTolerance(-15d);
    chart2bO.getSeriesDefaults().setShadowAngle(135d);
    chart2bO.getSeriesDefaults().setRendererOptions(
      new PlotBarRendererOptions().setBarDirection(PlotBarDirection.horizontal));

    chart2bO.getAxes().getYaxis().setRenderer(JQPlotCategoryAxisRenderer.get());

    add(chart2b);

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

Examples of nl.topicus.wqplot.options.PlotOptions

    JQPlot chart3 =
      new JQPlot("chart3", new ListModel<SimpleNumberSeries<Integer>>(Arrays.asList(
        new SimpleNumberSeries<Integer>(2, 6, 7, 10), new SimpleNumberSeries<Integer>(7, 5,
          3, 2), new SimpleNumberSeries<Integer>(14, 9, 3, 8))));

    PlotOptions chart3O = chart3.getOptions();
    chart3O.setStackSeries(true);
    chart3O.setCaptureRightClick(true);

    chart3O.getSeriesDefaults().setRenderer(JQPlotBarRenderer.get());
    chart3O.getSeriesDefaults().setRendererOptions(
      new PlotBarRendererOptions().setHighlightMouseDown(true));
    chart3O.getSeriesDefaults().getPointLabels().setShow(true);

    chart3O.getLegend().setShow(true);
    chart3O.getLegend().setLocation(PlotLegendLocation.e);
    chart3O.getLegend().setPlacement(PlotLegendPlacement.outside);

    add(chart3);

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

Examples of nl.topicus.wqplot.options.PlotOptions

    l3.addEntry(14, 1).addEntry(9, 2).addEntry(9, 3).addEntry(8, 4);
    series.add(l3);

    JQPlot chart4 = new JQPlot("chart4", new ListModel<NumberSeries<Integer, Integer>>(series));

    PlotOptions chart4O = chart4.getOptions();
    chart4O.setStackSeries(true);
    chart4O.setCaptureRightClick(true);

    chart4O.getSeriesDefaults().setRenderer(JQPlotBarRenderer.get());
    chart4O.getSeriesDefaults().setShadowAngle(135d);
    chart4O.getSeriesDefaults().setRendererOptions(
      new PlotBarRendererOptions().setHighlightMouseDown(true).setBarDirection(
        PlotBarDirection.horizontal));
    chart4O.getSeriesDefaults().getPointLabels().setShow(true);
    chart4O.getSeriesDefaults().getPointLabels().setFormatString("%d");

    chart4O.getLegend().setShow(true);
    chart4O.getLegend().setLocation(PlotLegendLocation.e);
    chart4O.getLegend().setPlacement(PlotLegendPlacement.outside);

    chart4O.getAxes().getYaxis().setRenderer(JQPlotCategoryAxisRenderer.get());

    add(chart4);
  }
View Full Code Here

Examples of nl.topicus.wqplot.options.PlotOptions

    l1.addEntry(2, 1).addEntry(null, 2).addEntry(7, 3).addEntry(10, 4);
    series.add(l1);

    JQPlot chart5 = new JQPlot("chart5", new ListModel<NumberSeries<Integer, Integer>>(series));

    PlotOptions chart5O = chart5.getOptions();
    chart5O.setCaptureRightClick(true);

    chart5O.getSeriesDefaults().setRenderer(JQPlotBarRenderer.get());
    chart5O.getSeriesDefaults().setShadowAngle(135d);
    chart5O.getSeriesDefaults().setRendererOptions(
      new PlotBarRendererOptions().setHighlightMouseDown(true).setBarDirection(
        PlotBarDirection.horizontal));
    chart5O.getSeriesDefaults().getPointLabels().setShow(true);
    chart5O.getSeriesDefaults().getPointLabels().setFormatString("%d");

    chart5O.getLegend().setShow(true);
    chart5O.getLegend().setLocation(PlotLegendLocation.e);
    chart5O.getLegend().setPlacement(PlotLegendPlacement.outside);

    chart5O.getAxes().getYaxis().setRenderer(JQPlotCategoryAxisRenderer.get());

    add(chart5);
  }
View Full Code Here

Examples of nl.topicus.wqplot.options.PlotOptions

  {
    JQPlot chart6 =
      new JQPlot("chart6", new ListModel<SimpleNumberSeries<Integer>>(
        Arrays.asList(new SimpleNumberSeries<Integer>(1, 2, 3, 4))));

    PlotOptions chart6O = chart6.getOptions();

    chart6O.getSeriesDefaults().setRenderer(JQPlotPieRenderer.get());

    add(chart6);
  }
View Full Code Here

Examples of nl.topicus.wqplot.options.PlotOptions

    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.");
    chart1series1.setNeighborThreshold(-1d);

    chart1O.getAxes().getXaxis().setRenderer(JQPlotDateAxisRenderer.get());
    chart1O.getAxes().getXaxis().setMin("August 1, 2007");
    chart1O.getAxes().getXaxis().setTickInterval("4 months");
    chart1O.getAxes().getXaxis().getTickOptions().setFormatString("%Y/%#m/%#d");
    chart1O.getAxes().getYaxis().setRenderer(JQPlotLogAxisRenderer.get());
    chart1O.getAxes().getYaxis().getTickOptions().setFormatString("$%.2f");

    chart1O.getCursor().setShow(true);
    chart1O.getCursor().setZoom(true);
    chart1O.getCursor().setShowTooltip(true);
    add(chart1);
  }
View Full Code Here

Examples of nl.topicus.wqplot.options.PlotOptions

  {
    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");

    add(chart1);
  }
View Full Code Here

Examples of nl.topicus.wqplot.options.PlotOptions

    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(
      new PlotBubbleRendererOptions().setAutoscalePointsFactor(-.15d).setBubbleAlpha(0.6d)
        .setHighlightAlpha(0.8d));
    chart1O.getSeriesDefaults().setHighlightMouseDown(true);
    chart1O.getSeriesDefaults().setShadow(true);
    chart1O.getSeriesDefaults().setShadowAlpha(0.05d);

    add(chart1);
  }
View Full Code Here

Examples of nl.topicus.wqplot.options.PlotOptions

    @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");
    chart2O.getCursor().setShow(true);
    chart2O.getCursor().setTooltipLocation(PlotTooltipLocation.sw);
    chart2O.getCursor().setZoom(true);
    chart2O.getCursor().setShowTooltipGridPosition(true);
    chart2O.getAxesDefaults().setUseSeriesColor(true);
    chart2O.getAxes().getXaxis().setMin(0);
    chart2O.getAxes().getXaxis().setMax(1600);
    chart2O.getAxes().getYaxis().setMin(0);
    chart2O.getAxes().getYaxis().setMax(600);
    chart2O.getAxes().getY2axis().setMin(1000);
    chart2O.getAxes().getY2axis().setMax(2000);
    chart2O.getAxes().getY2axis().setNumberTicks(9);
    chart2O.getAxes().getY2axis().getTickOptions().setShowGridline(true);
    chart2O.getAxes().getY3axis();

    add(chart2);
  }
View Full Code Here

Examples of nl.topicus.wqplot.options.PlotOptions

      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
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.