original_string: protected function renderGChart(\Twig_Environment $env, $data, $id, $type, $width, $height, $title = null, $config = array(), $addDivWithAndHeight = false, $events = array()) {
          $config['width'] = $width;
          $config['height'] = $height;
          if (!isset($config['title']) && !is_null($title) && trim($title) != '') { $config['title'] = $title;}
          return $this->renderTemplate($env, 'gChartTemplate', array('chartType' => $type, 'data' => $data, 'id' => $id, 'config' => $config, 'events' => $events  ), $addDivWithAndHeight);
      }
code: protected function renderGChart(\Twig_Environment $env, $data, $id, $type, $width, $height, $title = null, $config = array(), $addDivWithAndHeight = false, $events = array()) {
          $config['width'] = $width;
          $config['height'] = $height;
          if (!isset($config['title']) && !is_null($title) && trim($title) != '') { $config['title'] = $title;}
          return $this->renderTemplate($env, 'gChartTemplate', array('chartType' => $type, 'data' => $data, 'id' => $id, 'config' => $config, 'events' => $events  ), $addDivWithAndHeight);
      }
code_tokens: protected function renderGChart ( \ Twig_Environment $ env , $ data , $ id , $ type , $ width , $ height , $ title = null , $ config = array ( ) , $ addDivWithAndHeight = false , $ events = array ( ) ) { $ config [ 'width' ] = $ width ; $ config [ 'height' ] = $ height ; if ( ! isset ( $ config [ 'title' ] ) && ! is_null ( $ title ) && trim ( $ title ) != '' ) { $ config [ 'title' ] = $ title ; } return $ this -> renderTemplate ( $ env , 'gChartTemplate' , array ( 'chartType' => $ type , 'data' => $ data , 'id' => $ id , 'config' => $ config , 'events' => $ events ) , $ addDivWithAndHeight ) ; }
docstring: Generic method that returns html of gchart charts
docstring_tokens: Generic method that returns html of gchart charts