[ Index ]
 

Code source de jpGraph 2.2

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

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

   1  <?php
   2  include  ("../jpgraph.php");
   3  include  ("../jpgraph_line.php");
   4  
   5  $datay = array(1.23,1.9,1.6,3.1,3.4,2.8,2.1,1.9);
   6  $graph = new Graph(300,200,'auto');
   7  $graph->img->SetMargin(40,40,40,40);    
   8  $graph->SetScale("textlin");
   9  $graph->SetShadow();
  10  $graph->title->Set("Example of filled line plot");
  11  $graph->title->SetFont(FF_FONT1,FS_BOLD);
  12  
  13  $p1 = new LinePlot($datay);
  14  $p1->SetFillColor("orange");
  15  $p1->mark->SetType(MARK_FILLEDCIRCLE);
  16  $p1->mark->SetFillColor("red");
  17  $p1->mark->SetWidth(4);
  18  $graph->Add($p1);
  19  
  20  $graph->Stroke();
  21  
  22  ?>
  23  
  24  


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