CLASS HorizontalGridLine
(Defined in: jpgraph_gantt.php : 3061)
 HorizontalGridLine 
 SetRowFillColor() 
 SetStart() 
 Show() 
 

Class usage and Overview
Handles the alternating row colors in the Gantt chart

 


Class Methods

 

 

function SetRowFillColor($aColor1,$aColor2)
Specify alternating row fill color

ArgumentDefaultDescription
$aColor1  Color 1
$aColor2 '' Color 2

Description
Specify alternating row fill color for the Gantt chart. See gantthgridex1.php for a full example. 

Example

...
$graph->hgrid->Show();
$graph->hgrid->SetRowFillColor('darkblue@0.9');

 

 

function SetStart($aStart)
Specify start row for alternating colors

ArgumentDefaultDescription
$aStart  Start row

Description
Specify start row for alternating colors. By default it will start from row 0 (first row) 

 

 

function Show($aShow)
Enable alternating row colors

ArgumentDefaultDescription
$aShow true TRUE/FALSE

Description
Enable alternating row colors 

Example

$graph->hgrid->Show();