[ 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/ -> example19.php (source)

   1  <?php
   2  include  ("../jpgraph.php");
   3  include  ("../jpgraph_bar.php");
   4  
   5  $datay=array(12,8,19,3,10,5);
   6  
   7  // Create the graph. These two calls are always required
   8  $graph = new Graph(310,200,"auto");    
   9  $graph->img->SetMargin(40,30,20,40);
  10  $graph->SetScale("textlin");
  11  $graph->SetShadow();
  12  
  13  // Create a bar pot
  14  $bplot = new BarPlot($datay);
  15  $bplot->SetFillColor("orange");
  16  $graph->Add($bplot);
  17  
  18  $graph->title->Set("Example 19");
  19  $graph->xaxis->title->Set("X-title");
  20  $graph->yaxis->title->Set("Y-title");
  21  
  22  $graph->title->SetFont(FF_FONT1,FS_BOLD);
  23  $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD);
  24  $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD);
  25  
  26  // Display the graph
  27  $graph->Stroke();
  28  ?>


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