[ 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/ -> spiderex6.php (source)

   1  <?php
   2      include  ("../jpgraph.php");
   3      include  ("../jpgraph_spider.php");
   4      
   5      // Some data to plot
   6      $data = array(55,80,46,21,95);
   7      $data2 = array(65,95,50,75,60);
   8      $axtitles=array("Jan","Feb","Mar","Apr","May");
   9  
  10      // Create the graph and the plot
  11      $graph = new SpiderGraph(250,200,"auto");
  12      $graph->img->SetAntiAliasing("white");
  13      
  14      $plot = new SpiderPlot($data);
  15      $plot->SetLegend("Defects");
  16  
  17      $plot2 = new SpiderPlot($data2);
  18      $plot2->SetFill(false);
  19      $plot2->SetLineWeight(2);
  20      $plot2->SetColor("red");
  21      $plot2->SetLegend("Target");
  22  
  23      // Set position and size    
  24      $graph->SetCenter(0.5,0.55);
  25      $graph->SetTitles($axtitles);
  26      $graph->title->Set("Result 2001");
  27      $graph->title->SetFont(FF_FONT1,FS_BOLD);
  28      $graph->SupressTickMarks();
  29      $graph->SetShadow();
  30      //$graph->SetColor("teal");
  31      
  32      $graph->grid->SetLineStyle("solid");
  33      $graph->grid->SetColor("blue");
  34      $graph->grid->Show();
  35  
  36      // Add the plot and display the graph
  37      //$graph->Add($plot);
  38      $graph->Add($plot2);
  39      $graph->Stroke();
  40  ?>
  41  
  42      


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