public static function preRender( \Altamira\Chart $chart, array $styleOptions = array() )
    {
    	if ( $chart->titleHidden() ) {
    		return '';
    	}
    	
        $tagType = isset( $styleOptions['titleTag'] ) ? $styleOptions['titleTag'] : 'h3';
        $title = $chart->getTitle();
        
        $output = <<<ENDDIV
<div class="altamira-chart-title">
    <{$tagType}>{$title}</{$tagType}>

ENDDIV;
        
        return $output;
    }
public static function preRender( \Altamira\Chart $chart, array $styleOptions = array() )
    {
    	if ( $chart->titleHidden() ) {
    		return '';
    	}
    	
        $tagType = isset( $styleOptions['titleTag'] ) ? $styleOptions['titleTag'] : 'h3';
        $title = $chart->getTitle();
        
        $output = <<<ENDDIV
<div class="altamira-chart-title">
    <{$tagType}>{$title}</{$tagType}>

ENDDIV;
        
        return $output;
    }
public static function preRender ( \ Altamira \ Chart $ chart , array $ styleOptions = array ( ) ) { if ( $ chart -> titleHidden ( ) ) { return '' ; } $ tagType = isset ( $ styleOptions [ 'titleTag' ] ) ? $ styleOptions [ 'titleTag' ] : 'h3' ; $ title = $ chart -> getTitle ( ) ; $ output =  <<<ENDDIV
<div class="altamira-chart-title">
    <{$tagType}>{$title}</{$tagType}>

ENDDIV ; return $ output ; }
Adds open wrapping div and puts title in h3 tags by default, but configurable with titleTag key in style
If the chart has been set to hide its title, then it will not display
@param  \Altamira\Chart $chart
@param  array $styleOptions
@return string
Adds open wrapping div and puts title in h3 tags by default but configurable with titleTag key in style If the chart has been set to hide its title then it will not display