[ Index ]
 

Code source de jpGraph 2.2

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

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

   1  <?php
   2  include  ("../jpgraph.php");
   3  include  ("../jpgraph_line.php");
   4  
   5  $datay = array(20,10,35,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->SetBox();
  12  $graph->SetMarginColor('darkgreen@0.8');
  13  
  14  // Setup a background gradient image
  15  $graph->SetBackgroundGradient('darkred','yellow',GRAD_HOR,BGRAD_PLOT);
  16  
  17  $graph->title->Set('Gradient filled line plot ex2');
  18  $graph->yscale->SetAutoMin(0);
  19  
  20  // Create the line
  21  $p1 = new LinePlot($datay);
  22  $p1->SetFillGradient('white','darkgreen');
  23  $p1->SetStepStyle();
  24  $graph->Add($p1);
  25  
  26  // Output line
  27  $graph->Stroke();
  28  
  29  ?>
  30  
  31  


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