Contents Previous Next

9.11.1 Adding a title for the columns

Precisely as before you can also have a title spanning all the columns. This title is specified with the property tableTitle of the scale. Specifying a table title will automatically adjust the height of the column titles to fit the table title. The small code snippet below shows how to add a title.

 $graph ->scale->tableTitle-> Set('Phase 1');
$graph->scale-> tableTitle-> SetFont( FF_ARIAL, FS_NORMAL,12);
$graph->scale-> SetTableTitleBackground( 'darkgreen@0.6');
$graph->scale-> tableTitle-> Show(true);

A full example of this is shown below



Figure 165: Adding a column titles stratching all title columns. [src] 


Contents Previous Next