[ Index ]
 

Code source de jpGraph 2.2

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/src/Examples/ -> ganttcsimex01.php (source)

   1  <?php
   2  // Gantt example to create CSIM
   3  
   4  include  ("../jpgraph.php");
   5  include  ("../jpgraph_gantt.php");
   6  
   7  $bar1 = new GanttBar(0,"Activity 1","2001-12-21","2002-01-20");
   8  $bar1->SetCSIMTarget('#','Go back 1');
   9  $bar1->title->SetCSIMTarget('#','Go back 1 (title)');
  10  $bar2 = new GanttBar(1,"Activity 2","2002-01-03","2002-01-25");
  11  $bar2->SetCSIMTarget('#','Go back 2');
  12  $bar2->title->SetCSIMTarget('#','Go back 2 (title)');
  13  
  14  $graph = new GanttGraph(500);
  15  $graph->title->Set("Example with image map");
  16  $graph->ShowHeaders(GANTT_HYEAR | GANTT_HMONTH | GANTT_HDAY | GANTT_HWEEK);
  17  $graph->scale->week->SetStyle(WEEKSTYLE_FIRSTDAY);
  18  $graph->scale->week->SetFont(FF_FONT1);
  19  
  20  $graph->Add(array($bar1,$bar2));
  21  
  22  // And stroke
  23  $graph->StrokeCSIM('ganttcsimex01.php');
  24  
  25  
  26  ?>
  27  
  28  


Généré le : Sat Nov 24 09:27:55 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics