[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/projectmanager/inc/jpgraph-1.5.2/src/Examples/ -> pieex3.php (source)

   1  <?php
   2  include  ("../jpgraph.php");
   3  include  ("../jpgraph_pie.php");
   4  
   5  // Some data
   6  $data = array(40,21,17,14,23);
   7  
   8  // Create the Pie Graph.
   9  $graph = new PieGraph(350,300,"auto");
  10  $graph->SetShadow();
  11  
  12  // Set A title for the plot
  13  $graph->title->Set("Example 3 Multiple - Pie plot");
  14  $graph->title->SetFont(FF_FONT1,FS_BOLD);
  15  // Create plots
  16  $size=0.13;
  17  $p1 = new PiePlot($data);
  18  $p1->SetLegends(array("Jan","Feb","Mar","Apr","May"));
  19  $p1->SetSize($size);
  20  $p1->SetCenter(0.25,0.32);
  21  $p1->SetFont(FF_FONT0);
  22  $p1->title->Set("2001");
  23  
  24  $p2 = new PiePlot($data);
  25  $p2->SetSize($size);
  26  $p2->SetCenter(0.65,0.32);
  27  $p2->SetFont(FF_FONT0);
  28  $p2->title->Set("2002");
  29  
  30  $p3 = new PiePlot($data);
  31  $p3->SetSize($size);
  32  $p3->SetCenter(0.25,0.75);
  33  $p3->SetFont(FF_FONT0);
  34  $p3->title->Set("2003");
  35  
  36  $p4 = new PiePlot($data);
  37  $p4->SetSize($size);
  38  $p4->SetCenter(0.65,0.75);
  39  $p4->SetFont(FF_FONT0);
  40  $p4->title->Set("2004");
  41  
  42  $graph->Add($p1);
  43  $graph->Add($p2);
  44  $graph->Add($p3);
  45  $graph->Add($p4);
  46  
  47  $graph->Stroke();
  48  
  49  ?>
  50  
  51  
  52  


Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7