[ Index ] |
|
Code source de jpGraph 2.2 |
1 <?php 2 // Gantt example 3 include ("../jpgraph.php"); 4 include ("../jpgraph_gantt.php"); 5 6 // 7 // The data for the graphs 8 // 9 $data = array( 10 array(0,ACTYPE_GROUP, "Phase 1", "2001-10-26","2001-11-23",''), 11 array(1,ACTYPE_NORMAL, " Label 2", "2001-10-26","2001-11-16",''), 12 array(2,ACTYPE_NORMAL, " Label 3", "2001-11-20","2001-11-22",''), 13 array(3,ACTYPE_MILESTONE," Phase 1 Done", "2001-11-23",'M2') ); 14 15 // The constrains between the activities 16 //$constrains = array(array(1,2,CONSTRAIN_ENDSTART), 17 // array(2,3,CONSTRAIN_STARTSTART)); 18 $constrains = array(); 19 20 $progress = array(array(1,0.4)); 21 22 // Create the basic graph 23 $graph = new GanttGraph(); 24 $graph->title->Set("Example with grouping and constrains"); 25 26 // Setup scale 27 $graph->ShowHeaders(GANTT_HYEAR | GANTT_HMONTH | GANTT_HDAY | GANTT_HWEEK); 28 $graph->scale->week->SetStyle(WEEKSTYLE_FIRSTDAYWNBR); 29 30 // Add the specified activities 31 $graph->CreateSimple($data,$constrains,$progress); 32 33 // .. and stroke the graph 34 $graph->Stroke(); 35 36 ?> 37 38
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Nov 24 09:27:55 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |