Package nl.topicus.wqplot.options

Examples of nl.topicus.wqplot.options.PlotOptions


    SimpleNumberSeries<Double> l2 = new SimpleNumberSeries<Double>(25d, 12.5d, 6.25d, 3.125d);

    @SuppressWarnings("unchecked")
    JQPlot chart4 = new JQPlot("chart4", new ListModel(Arrays.asList(l1, l2)));
    PlotOptions chart4O = chart4.getOptions();
    chart4O.getLegend().setShow(true);
    chart4O.setTitle("Customized Axes Ticks");
    chart4O.getGrid().setBackground("#f3f3f3").setGridLineColor("#accf9b");

    PlotSeries chart4series1 = chart4O.addNewSeries();
    chart4series1.setLabel("Rising line");
    chart4series1.getMarkerOptions().setStyle(PlotMarkerStyle.square);

    chart4O.addNewSeries().setLabel("Declining line");

    PlotAxes chart4axes = chart4O.getAxes();
    chart4axes.getXaxis().setTicks(
      Arrays.asList(new PlotTick(0, "zero"), new PlotTick(1, "one"), new PlotTick(2, "two"),
        new PlotTick(3, "three"), new PlotTick(4, "four"), new PlotTick(5, "five")));

    chart4axes.getYaxis().setTicks(-5, 0, 5, 10, 15, 20, 25, 30).getTickOptions()
View Full Code Here


    }
    JQPlot chart =
      new JQPlot("chart1", new ListModel<DateNumberSeries<Double>>(series));
    tBody.addOrReplace(chart);   
   
    PlotOptions plotOptions = chart.getOptions();
    plotOptions.getLegend().setShow(true);
    for(ISeriesPopulator<E> col: chartModel.getSeries()) {
      PlotSeries plotSeries = plotOptions.addNewSeries();
      plotSeries.setLabel(col.getSeriesLabel().getObject());
      col.configureSeries(plotSeries);
    }
    plotOptions.getAxes().getXaxis().setRenderer(JQPlotDateAxisRenderer.get().getName());   
    configurePlotOptions(plotOptions);
    super.onBeforeRender()
  }
View Full Code Here

        .getSeries(AverageRequestTime.class);
    JQPlot ret = new JQPlot(
        id,
        new ListModel<DataSourcePlotSeries<Integer, AverageRequestTime>>(
            series));
    PlotOptions options = ret.getOptions();
    options.getTitle().setText("Average request time (ms)");

    setDefaultOptions(options);
    setSeriesLabels(options, series);
    setAxisMinAndMax(options, series, 50);
    //options.getAxes().getYaxis().setRenderer("$.jqplot.LogAxisRenderer");
View Full Code Here

    List<DataSourcePlotSeries<Integer, NumberOfUsers>> series = plotService
        .getSeries(NumberOfUsers.class);
    JQPlot ret = new JQPlot(id,
        new ListModel<DataSourcePlotSeries<Integer, NumberOfUsers>>(
            series));
    PlotOptions options = ret.getOptions();
    options.getTitle().setText("Number of users");

    setDefaultOptions(options);
    setSeriesLabels(options, series);
    setAxisMinAndMax(options, series, 200);
    return ret;
View Full Code Here

        .getSeries(RequestsPerMinute.class);
    JQPlot ret = new JQPlot(
        id,
        new ListModel<DataSourcePlotSeries<Integer, RequestsPerMinute>>(
            series));
    PlotOptions options = ret.getOptions();
    options.getTitle().setText("Requests per minute");

    setDefaultOptions(options);
    setSeriesLabels(options, series);
    setAxisMinAndMax(options, series, 200);
    return ret;
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.