Class HorizontalGridLine
(Defined in: jpgraph_gantt.php : 3113)

HorizontalGridLine
SetRowFillColor() SetStart() Show()

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

Class Methods

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

Argument | Default | Description
--- | --- | ---
$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');

HorizontalGridLine ::
SetStart($aStart)
Specify start row for alternating colors

Argument | Default | Description
--- | --- | ---
$aStart |  | Start row

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

HorizontalGridLine ::
Show($aShow)
Enable alternating row colors

Argument | Default | Description
--- | --- | ---
$aShow | true | TRUE/FALSE

Description:
Enable alternating row colors

Example:

$graph->hgrid->Show();