[ Index ]
 

Code source de jpGraph 2.2

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

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

   1  <?php
   2  include  ("../jpgraph.php");
   3  include  ("../jpgraph_line.php");
   4  include  ("../jpgraph_flags.php");
   5  include  ("../jpgraph_iconplot.php");
   6  
   7  $datay = array(30,25,33,25,27,45,32);
   8  
   9  // Setup the graph
  10  $graph = new Graph(400,250);
  11  $graph->SetMargin(40,40,20,30);    
  12  $graph->SetScale("textlin");
  13  
  14  $graph->title->Set('Adding a country flag as a an icon');
  15  
  16  $p1 = new LinePlot($datay);
  17  $p1->SetColor("blue");
  18  $p1->SetFillGradient('yellow@0.4','red@0.4');
  19  
  20  $graph->Add($p1);
  21  
  22  $icon = new IconPlot();
  23  $icon->SetCountryFlag('iceland',50,30,1.5,40,3);
  24  $icon->SetAnchor('left','top');
  25  $graph->Add($icon);
  26  
  27  // Output line
  28  $graph->Stroke();
  29  
  30  ?>
  31  
  32  


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