Examples of HorizontalBarChart


Examples of com.extjs.gxt.charts.client.model.charts.HorizontalBarChart

      cm.setXAxis(xa);
      YAxis ya = new YAxis();
      ya.addLabels("Ext", "Dojo", "jQuery", "YUI");
      ya.setOffset(true);
      cm.setYAxis(ya);
      HorizontalBarChart bchart = new HorizontalBarChart();
      bchart.setTooltip("#val# mph");
      bchart.addBars(new HorizontalBarChart.Bar(Random.nextInt(47) + 100, "#ffff00"));
      bchart.addBars(new HorizontalBarChart.Bar(Random.nextInt(44) + 100, "#0000ff"));
      bchart.addBars(new HorizontalBarChart.Bar(Random.nextInt(23) + 100, "#00ff00"));
      bchart.addBars(new HorizontalBarChart.Bar(Random.nextInt(50) + 150, "#ff0000"));
      cm.addChartConfig(bchart);
      cm.setTooltipStyle(new ToolTip(MouseStyle.FOLLOW));
      return cm;
    }
View Full Code Here

Examples of ofc4j.model.elements.HorizontalBarChart

      return bc;
    }
  }

  public Element getHorizontalBarChartFromColumn( int col ) {
    HorizontalBarChart hbc = new HorizontalBarChart();
    for ( int row = 0; row < getRowCount(); row++ ) {
      double d = ( (Number) getValueAt( row, col ) ).doubleValue();
      hbc.addBars( new HorizontalBarChart.Bar( d ) );
    }
    hbc.setColour( getColor( col ) );
    if ( tooltipText != null ) {
      hbc.setTooltip( tooltipText );
    }

    // set the title for this series
    hbc.setText( getColumnHeader( col ) );

    // set the onclick event to the base url template
    if ( null != baseURLTemplate ) {
      hbc.setOn_click( baseURLTemplate );
    }

    if ( alpha != null ) {
      hbc.setAlpha( alpha );
    }

    return hbc;
  }
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.