Package ca.nanometrics.gflot.client

Examples of ca.nanometrics.gflot.client.SimplePlot


    handler.add(new DataPoint(10, 8.2));
    handler.add(new DataPoint(11, 1.5));
    handler.add(new DataPoint(12, -6.6));

    // create the plot
    SimplePlot plot = new SimplePlot(model, plotOptions);

    // put it on a panel
    FlowPanel panel = new FlowPanel();
    panel.add(plot);
    return panel;
View Full Code Here


    handler.add(new DataPoint(10, 8.2));
    handler.add(new DataPoint(11, 1.5));
    handler.add(new DataPoint(12, -6.6));

    // create the plot
    SimplePlot plot = new SimplePlot(model, plotOptions);

    // put it on a panel
    FlowPanel panel = new FlowPanel();
    panel.add(plot);
    return panel;
View Full Code Here

    handler.add(new DataPoint(10, 8.2));
    handler.add(new DataPoint(11, 1.5));
    handler.add(new DataPoint(12, -6.6));

    // create the plot
    SimplePlot plot = new SimplePlot(model, plotOptions);

    // add hover listener
    plot.addHoverListener(new PlotHoverListener() {
      public void onPlotHover(Plot plot, PlotPosition position, PlotItem item) {
        if(position != null){
          positionLabel.setText("position: ("+position.getX()+","+position.getY()+")");
        }
        if (item != null) {
View Full Code Here

    vancouverSeries.add(new DataPoint(10, 11.1));
    vancouverSeries.add(new DataPoint(11, 7.1));
    vancouverSeries.add(new DataPoint(12, 4.8));

    // create the plot
    SimplePlot plot = new SimplePlot(model, plotOptions);

    // put it on a panel
    FlowPanel panel = new FlowPanel();
    panel.add(new HTML(
        "<p style=\"font-weight: bold; align: center;\">Month Temperatures (Daily Average in &deg;C)</p>"));
View Full Code Here

        handler.add( new DataPoint( 10, 8.2 ) );
        handler.add( new DataPoint( 11, 1.5 ) );
        handler.add( new DataPoint( 12, -6.6 ) );

        // create the plot
        SimplePlot plot = new SimplePlot( model, plotOptions );

        // put it on a panel
        FlowPanel panel = new FlowPanel();
        panel.add( plot );
        return panel;
View Full Code Here

        handler.add( new DataPoint( 10, 8.2 ) );
        handler.add( new DataPoint( 11, 1.5 ) );
        handler.add( new DataPoint( 12, -6.6 ) );

        // create the plot
        SimplePlot plot = new SimplePlot( model, plotOptions );

        // put it on a panel
        FlowPanel panel = new FlowPanel();
        panel.add( plot );
        return panel;
View Full Code Here

        handlerLine.add( new DataPoint(-2, -8) );
        handlerLine.add( new DataPoint(4, 0) );

        // add data

        SimplePlot plot = new SimplePlot( model, plotOptions );
        plot.setLoadDataImages( true );
        plot.setSize( "400px", "400px" );
        final FlowPanel panel = new FlowPanel();
        panel.add( plot );
        return panel;

    }
View Full Code Here

    handler.add(new DataPoint(10, 8.2));
    handler.add(new DataPoint(11, 1.5));
    handler.add(new DataPoint(12, -6.6));

    // create the plot
    SimplePlot plot = new SimplePlot(model, plotOptions);

        final PopupPanel popup = new PopupPanel();
          final Label label = new Label();
          popup.add(label);

    // add hover listener
    plot.addHoverListener(new PlotHoverListener() {
      public void onPlotHover(Plot plot, PlotPosition position, PlotItem item) {
        if(position != null){
          positionLabel.setText("position: ("+position.getX()+","+position.getY()+")");
        }
        if (item != null) {
View Full Code Here

        vancouverSeries.add( new DataPoint( Date.UTC( 110, 9, 1, 0, 0, 0 ), 11.1 ) );
        vancouverSeries.add( new DataPoint( Date.UTC( 110, 10, 1, 0, 0, 0 ), 7.1 ) );
        vancouverSeries.add( new DataPoint( Date.UTC( 110, 11, 1, 0, 0, 0 ), 4.8 ) );

        // create the plot
        SimplePlot plot = new SimplePlot( model, plotOptions );

        // put it on a panel
        FlowPanel panel = new FlowPanel();
        panel.add( new HTML(
            "<div style=\"font-weight: bold; align: center; margin: 0px 0px 5px 5px;\">Month Temperatures (Daily Average in &deg;C)</div>" ) );
View Full Code Here

TOP

Related Classes of ca.nanometrics.gflot.client.SimplePlot

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.