[ Index ]
 

Code source de jpGraph 2.2

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

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

   1  <?php
   2  include  ("../jpgraph.php");
   3  include  ("../jpgraph_pie.php");
   4  include  ("../jpgraph_pie3d.php");
   5  
   6  $data = array(40,60,21,33);
   7  
   8  $graph = new PieGraph(300,200,"auto");
   9  $graph->SetShadow();
  10  
  11  $graph->title->Set("A simple Pie plot");
  12  $graph->title->SetFont(FF_FONT1,FS_BOLD);
  13  
  14  $p1 = new PiePlot3D($data);
  15  $p1->SetSize(0.5);
  16  $p1->SetCenter(0.45);
  17  $p1->SetLegends($gDateLocale->GetShortMonth());
  18  
  19  $graph->Add($p1);
  20  $graph->Stroke();
  21  
  22  ?>
  23  
  24  


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