[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/projectmanager/inc/jpgraph-1.5.2/src/Examples/ -> linegrace.php (source)

   1  <?php
   2  include  ("../jpgraph.php");
   3  include  ("../jpgraph_line.php");
   4  
   5  $datay = array(0.2980,0.3039,0.3020,0.3027,0.3015);
   6  $graph = new Graph(300,200);
   7  $graph->img->SetMargin(40,40,40,40);    
   8  $graph->img->SetAntiAliasing();
   9  $graph->SetScale("textlin");
  10  $graph->SetShadow();
  11  $graph->title->Set("Example of 10% grace in line plot");
  12  $graph->title->SetFont(FF_FONT1,FS_BOLD);
  13  $graph->yscale->SetGrace(10);
  14  
  15  $p1 = new LinePlot($datay);
  16  $p1->mark->SetType(MARK_FILLEDCIRCLE);
  17  $p1->mark->SetFillColor("red");
  18  $p1->mark->SetWidth(4);
  19  $p1->SetColor("blue");
  20  $p1->SetCenter();
  21  $graph->Add($p1);
  22  
  23  $graph->Stroke();
  24  
  25  ?>
  26  
  27  


Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7