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);
    }
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);
    }
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 ) ; }
Generic method that returns html of gchart charts
Generic method that returns html of gchart charts