[ 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 19 $progress = array(array(1,0.4)); 20 21 // Create the basic graph 22 $graph = new GanttGraph(); 23 $graph->title->Set("Example with grouping and constrains"); 24 25 // Setup scale 26 $graph->ShowHeaders(GANTT_HYEAR | GANTT_HMONTH | GANTT_HDAY | GANTT_HWEEK); 27 $graph->scale->week->SetStyle(WEEKSTYLE_FIRSTDAYWNBR); 28 29 // Add the specified activities 30 $graph->CreateSimple($data,$constrains,$progress); 31 32 // .. and stroke the graph 33 $graph->Stroke(); 34 35 ?> 36 37
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 |
![]() |