CLASS Progress
(Defined in: jpgraph_gantt.php : 3029) Class usage and Overview
Represents the progress bar inside the activity bar in Gantt Charts
See also related classes:
GanttGraph and GanttBar
Class Methods
function Set($aProg)
Specify progress of activity in percent.
Argument | Default | Description |
$aProg
| | Progress in percent (0-1) |
Description
Specify progress of activity in percent. The shape of the progress bar can be specified with Progress::SetPattern()
See also
Progress::SetPattern
$bar->progress->Set(0.8);
function SetFillColor($aColor)
Set fill (background) color for progress bar
Argument | Default | Description |
$aColor
| | Color |
Description
Set fill (background) color for progress bar
$bar->progress->SetFillColor('white');
function SetPattern($aPattern,$aColor,$aDensity)
Specify pattern class to use for progress bar
Argument | Default | Description |
$aPattern
| | Pattern |
$aColor
|
"blue"
| Color |
$aDensity
|
98
| Density |
Description
Specify pattern class to use for progress bar. Valid patterns for the first argument are:
- BAND_RDIAG, Right diagonal lines
- BAND_LDIAG, Left diagonal lines
- BAND_SOLID, Solid one color
- BAND_LVERT, Vertical lines
- BAND_LHOR, Horizontal lines
- BAND_VLINE, Vertical lines
- BAND_HLINE, Horizontal lines
- BAND_3DPLANE, "3D" Plane
- BAND_HVCROSS, Vertical/Hor crosses
- BAND_DIAGCROSS, Diagonal crosses
See also
GanttBar::SetPattern
$activity->Set(0.8);
$activity->progress->SetPattern(BAND_RDIAG,"blue");