| GanttActivityInfo |
| Hide() SetBackgroundColor() SetColor() SetColTitles() SetColumnMargin() SetFont() SetFontColor() SetHeaderAlign() SetStyle() Show() |
It is instantiated in the scale and is accessed through the Gantt scale for example as in
$graph->scale->actinfo->SetColTitles(
array('Note','Name','Duration','Start','Finish'),array(30,100));
$graph->scale->actinfo->SetBackgroundColor('green:0.5@0.5');
$graph->scale->actinfo->SetFont(FF_ARIAL,FS_NORMAL,10);
$graph->scale->actinfo->vgrid->SetStyle('solid');
$graph->scale->actinfo->vgrid->SetColor('gray');
It is optional to use titles for the columns, so if you don't want to use titles you never have to add the above lines to a Gantt graph (but it sure looks nicer if you do ... )
Hide titles
| Argument | Default | Description |
|---|---|---|
| $aF | true | TRUE=Hide titles |
Example:
Specify backgound color for titles
| Argument | Default | Description |
|---|---|---|
| $aColor | Color specification |
Example:
Specify color of vertical dividers between each title column
| Argument | Default | Description |
|---|---|---|
| $aColor | Color specification |
Example:
Specify texts to be used as titles
| Argument | Default | Description |
|---|---|---|
| $aTitles | Array of titles | |
| $aWidth | null | Optional width for each column |
It is perfectly legal to just specify the explicit width of the first few columns and have the rest of them become automatically sized. See eamplebelow.
Example:
Specify extra margin to the left and right of the text in each column
| Argument | Default | Description |
|---|---|---|
| $aLeft | Left margin (in pixels) | |
| $aRight | Right margin (in pixels) |
Example:
Specify title font
| Argument | Default | Description |
|---|---|---|
| $aFFamily | Font family | |
| $aFStyle | FS_NORMAL | Font style |
| $aFSize | 10 | Font size |
Example:
Specify title font color
| Argument | Default | Description |
|---|---|---|
| $aFontColor | Color specification |
Example:
Adjust headers left, right or centered
| Argument | Default | Description |
|---|---|---|
| $aAlign | Header alignment |
Example:
Enable 3D header style
| Argument | Default | Description |
|---|---|---|
| $aStyle | 1=3D style |
Example:
Show titles
| Argument | Default | Description |
|---|---|---|
| $aF | true | TRUE=Show headers |
Example: