[ Index ]
 

Code source de jpGraph 2.2

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

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

   1  <?php
   2  include  ("../jpgraph.php");
   3  include  ("../jpgraph_line.php");
   4  
   5  $datay = array(20,15,33,5,17,35,22);
   6  
   7  // Setup the graph
   8  $graph = new Graph(400,200);
   9  $graph->SetMargin(40,40,20,30);    
  10  $graph->SetScale("intlin");
  11  $graph->SetMarginColor('darkgreen@0.8');
  12  
  13  $graph->title->Set('Gradient filled line plot');
  14  $graph->yscale->SetAutoMin(0);
  15  
  16  // Create the line
  17  $p1 = new LinePlot($datay);
  18  $p1->SetColor("blue");
  19  $p1->SetWeight(0);
  20  $p1->SetFillGradient('red','yellow');
  21  
  22  $graph->Add($p1);
  23  
  24  // Output line
  25  $graph->Stroke();
  26  
  27  ?>
  28  
  29  


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