Package nl.topicus.wqplot.options

Examples of nl.topicus.wqplot.options.PlotOptions


    @SuppressWarnings("unchecked")
    JQPlot chart1 =
      new JQPlot("chart1", new ListModel<DateNumberSeries<Double>>(Arrays.asList(l1, l2, l3,
        l4)));
    PlotOptions chart1O = chart1.getOptions();
    chart1O.setTitle("Date chart");

    chart1O.getAxes().getXaxis().setRenderer(JQPlotDateAxisRenderer.get().getName());

    PlotSeries chart1series1 = chart1O.addNewSeries();
    chart1series1.setLineWidth(2d);
    chart1series1.getMarkerOptions().setStyle(PlotMarkerStyle.diamond);

    PlotSeries chart1series2 = chart1O.addNewSeries();
    chart1series2.setShowLine(true);
    chart1series2.getMarkerOptions().setSize(7d).setStyle(PlotMarkerStyle.diamond);

    PlotSeries chart1series3 = chart1O.addNewSeries();
    chart1series3.getMarkerOptions().setStyle(PlotMarkerStyle.circle);

    PlotSeries chart1series4 = chart1O.addNewSeries();
    chart1series4.setLineWidth(5d);
    chart1series4.getMarkerOptions().setSize(14d).setStyle(PlotMarkerStyle.filledSquare);

    add(chart1);
  }
View Full Code Here


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

    PlotOptions chart1O = chart1.getOptions();
    chart1O.setTitle("Transparent Bubbles");
    chart1O.getSeriesDefaults().setRenderer("$.jqplot.BubbleRenderer");
    chart1O.getSeriesDefaults().setShadow(true);
    chart1O.getSeriesDefaults().setShadowAlpha(0.05);
    PlotBubbleRendererOptions renderOptions = new PlotBubbleRendererOptions();
    renderOptions.setBubbleAlpha(0.6);
    renderOptions.setHighlightAlpha(0.8);
    chart1O.getSeriesDefaults().setRendererOptions(renderOptions);

    add(chart1);
  }
View Full Code Here

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

    PlotOptions chart1bO = chart1b.getOptions();
    chart1bO.setTitle("Tooltip and Custom Legend Highlighting");
    chart1bO.getSeriesDefaults().setRenderer("$.jqplot.BubbleRenderer");
    PlotBubbleRendererOptions renderOptions = new PlotBubbleRendererOptions();
    renderOptions.setBubbleAlpha(0.6);
    renderOptions.setHighlightAlpha(0.8);
    renderOptions.setShowLabels(false);
    chart1bO.getSeriesDefaults().setRendererOptions(renderOptions);
    chart1bO.getSeriesDefaults().setShadow(true);
    chart1bO.getSeriesDefaults().setShadowAlpha(0.05);

    add(chart1b);
  }
View Full Code Here

    JQPlot chart1c =
      new JQPlot("chart1c", new ListModel<BubbleSeries<Integer, Integer, Integer, Object>>(
        lines));

    PlotOptions chart1cO = chart1c.getOptions();
    chart1cO.setTitle("Bubble Data Customizations");
    chart1cO.getSeriesDefaults().setRenderer("$.jqplot.BubbleRenderer");

    add(chart1c);
  }
View Full Code Here

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

    PlotOptions chart2O = chart2.getOptions();
    chart2O.setTitle("Bubble Gradient Fills<sup>*</sup>");
    chart2O.getSeriesDefaults().setRenderer("$.jqplot.BubbleRenderer");
    PlotBubbleRendererOptions renderOptions = new PlotBubbleRendererOptions();
    renderOptions.setBubbleGradients(true);
    chart2O.getSeriesDefaults().setRendererOptions(renderOptions);
    chart2O.getSeriesDefaults().setShadow(true);

    add(chart2);
  }
View Full Code Here

    JQPlot chart3 =
      new JQPlot("chart3", new ListModel<BubbleSeries<Integer, Integer, Integer, String>>(
        lines));

    PlotOptions chart3O = chart3.getOptions();
    chart3O.setTitle("Bubble Auto Scaling Options");
    chart3O.getSeriesDefaults().setRenderer("$.jqplot.BubbleRenderer");
    PlotBubbleRendererOptions renderOptions = new PlotBubbleRendererOptions();
    renderOptions.setAutoscalePointsFactor(-0.15);
    renderOptions.setAutoscaleMultiplier(0.85);
    renderOptions.setHighlightMouseDown(true);
    renderOptions.setBubbleAlpha(0.7);
    chart3O.getSeriesDefaults().setRendererOptions(renderOptions);
    chart3O.getSeriesDefaults().setShadow(true);
    chart3O.getSeriesDefaults().setShadowAlpha(0.05);

    add(chart3);
  }
View Full Code Here

    List<BaseSeries<String, Integer>> lines = new ArrayList<BaseSeries<String, Integer>>();
    lines.add(line);

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

    PlotOptions chart1O = chart1.getOptions();
    chart1O.setTitle("Concern vs. Occurrance");
    chart1O.addNewSeries().setRenderer("$.jqplot.BarRenderer");
    chart1O.getAxes().getXaxis().setRenderer("$.jqplot.CategoryAxisRenderer");
    chart1O.getAxes().getXaxis().setLabel("Warranty Concern");
    chart1O.getAxes().getXaxis().setTickRenderer("$.jqplot.CanvasAxisTickRenderer");

    PlotCanvasAxisTickRendererOptions xAxisTickOptions =
      new PlotCanvasAxisTickRendererOptions();
    xAxisTickOptions.setAngle(-30.0);
    xAxisTickOptions.setEnableFontSupport(true);
    chart1O.getAxes().getXaxis().setTickOptions(xAxisTickOptions);

    chart1O.getAxes().getYaxis().setAutoscale(true);
    chart1O.getAxes().getYaxis().setLabel("Occurance");
    chart1O.getAxes().getYaxis().setTickRenderer("$.jqplot.CanvasAxisTickRenderer");

    PlotCanvasAxisTickRendererOptions yAxisTickOptions =
      new PlotCanvasAxisTickRendererOptions();
    yAxisTickOptions.setAngle(-30.0);
    yAxisTickOptions.setEnableFontSupport(true);
    chart1O.getAxes().getYaxis().setTickOptions(yAxisTickOptions);

    add(chart1);
  }
View Full Code Here

  private void addChart1(SimpleNumberSeries<Double> line)
  {
    JQPlot chart1 =
      new JQPlot("chart1", new ListModel<SimpleNumberSeries<Double>>(Arrays.asList(line)));

    PlotOptions chart1O = chart1.getOptions();
    chart1O.getLegend().setShow(false);
    chart1O.getAxes().getXaxis().setAutoscale(true);
    chart1O.getAxes().getXaxis().setLabel("Core Motor Amperage");
    chart1O.getAxes().getXaxis().getLabelOptions().setFontSize("13pt");
    chart1O.getAxes().getXaxis().setLabelRenderer("$.jqplot.CanvasAxisLabelRenderer");

    chart1O.getAxes().getYaxis().setAutoscale(true);
    chart1O.getAxes().getYaxis().setRenderer("$.jqplot.LogAxisRenderer");
    chart1O
      .getAxes()
      .getYaxis()
      .setTickOptions(
        new PlotCanvasAxisTickRendererOptions().setFormatString("%.2f")
          .setLabelPosition(PlotTickLabelPosition.middle).setAngle(-30d));
    chart1O.getAxes().getYaxis().setTickRenderer("$.jqplot.CanvasAxisTickRenderer");
    chart1O.getAxes().getYaxis().setLabelRenderer("$.jqplot.CanvasAxisLabelRenderer");
    chart1O.getAxes().getYaxis().getLabelOptions().setFontSize("13pt");
    chart1O.getAxes().getYaxis().setLabel("Core Motor Voltage");

    add(chart1);
  }
View Full Code Here

  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");
    chart2O
      .getAxes()
      .getXaxis()
      .setTickOptions(
        new PlotCanvasAxisTickRendererOptions().setLabelPosition(
          PlotTickLabelPosition.middle).setAngle(15d));
    chart2O.getAxes().getYaxis().setLabel("Incliment Factor");
    chart2O.getAxes().getYaxis().setLabelRenderer("$.jqplot.CanvasAxisLabelRenderer");

    add(chart2);
  }
View Full Code Here

  private void addChart3(StringNumberSeries<Integer> line)
  {
    JQPlot chart3 =
      new JQPlot("chart3", new ListModel<StringNumberSeries<Integer>>(Arrays.asList(line)));

    PlotOptions chart3O = chart3.getOptions();
    chart3O.addNewSeries().setRenderer("$.jqplot.BarRenderer");
    chart3O.getAxes().getXaxis().setRenderer("$.jqplot.CategoryAxisRenderer");
    chart3O.getAxes().getXaxis().setLabel("Warranty Concern");
    chart3O.getAxes().getXaxis().setLabelRenderer("$.jqplot.CanvasAxisLabelRenderer");
    chart3O.getAxes().getXaxis().setTickRenderer("$.jqplot.CanvasAxisTickRenderer");
    chart3O.getAxes().getXaxis()
      .setTickOptions(new PlotCanvasAxisTickRendererOptions().setAngle(-30d));

    chart3O.getAxes().getYaxis().setAutoscale(true);
    chart3O.getAxes().getYaxis().setLabel("Occurance");
    chart3O.getAxes().getYaxis().setLabelRenderer("$.jqplot.CanvasAxisLabelRenderer");

    add(chart3);
  }
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.