[ Index ]
 

Code source de jpGraph 2.2

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/src/Examples/ -> example1.1.php (source)

   1  <?php
   2  include  ("../jpgraph.php");
   3  include  ("../jpgraph_line.php");
   4   
   5  $ydata = array(11,11,11);
   6  
   7  // Create the graph. 
   8  $graph = new Graph(350,250,"auto");    
   9  $graph->SetScale("textlin");
  10  $graph->img->SetMargin(30,90,40,50);
  11  $graph->xaxis->SetFont(FF_FONT1,FS_BOLD);
  12  $graph->title->Set("Example 1.1 same y-values");
  13  
  14  // Create the linear plot
  15  $lineplot=new LinePlot($ydata);
  16  $lineplot->SetLegend("Test 1");
  17  $lineplot->SetColor("blue");
  18  $lineplot->SetWeight(5);
  19  
  20  // Add the plot to the graph
  21  $graph->Add($lineplot);
  22  
  23  // Display the graph
  24  $graph->Stroke();
  25  ?>


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