[ Index ]
 

Code source de jpGraph 2.2

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

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

   1  <?php
   2  include  ("../jpgraph.php");
   3  include  ("../jpgraph_line.php");
   4  
   5  // Some data
   6  $ydata = array(11,3,8,12,5,1,9,13,5,7);
   7  
   8  // Create the graph. These two calls are always required
   9  $graph = new Graph(350,250,"auto");    
  10  $graph->SetScale("textlin");
  11  
  12  // Create the linear plot
  13  $lineplot=new LinePlot($ydata);
  14  $lineplot->SetColor("blue");
  15  
  16  // Add the plot to the graph
  17  $graph->Add($lineplot);
  18  
  19  // Display the graph
  20  $graph->Stroke();
  21  ?>


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