Exemplo n.º 1
0
 /**
  * @override
  */
 function __initialize($options = array(), $query = false, $ds = false)
 {
     if (GoogleVisualization::$UseMaterialDesign) {
         parent::__initialize('Bar', $options, $query, $ds);
         $this->_loadPackage('bar');
     } else {
         parent::__initialize('ColumnChart', $options, $query, $ds);
         $this->_loadPackage('corechart');
     }
 }
Exemplo n.º 2
0
 /**
  * @override
  */
 function PreRender($args = array())
 {
     $t = $this->opt('title');
     if ($t) {
         // use jQuery to add a caption element to the table as google does not support this natively
         $js = "\$('#{$this->id}').find('table').prepend('<caption>{$t}</caption>');";
         $this->_addLoadCallback('visualization', $js);
     }
     return parent::PreRender($args);
 }
Exemplo n.º 3
0
 /**
  * @override
  */
 function __initialize($options = array(), $query = false, $ds = false)
 {
     parent::__initialize('AreaChart', $options, $query, $ds);
     $this->_loadPackage('corechart');
 }
Exemplo n.º 4
0
 /**
  * @override
  */
 function __initialize($options = array(), $query = false, $ds = false)
 {
     parent::__initialize('Gauge', $options, $query, $ds);
     $this->_loadPackage('gauge');
 }