[ 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/ -> spiderex4.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      $axtitles=array("Jan","Feb","Mar","Apr","May");
   8  
   9      // Create the graph and the plot
  10      $graph = new SpiderGraph(250,200,"auto");
  11      $plot = new SpiderPlot($data);
  12      $plot->SetLegend("Defects");
  13      $graph->axis->title->SetFont(FF_FONT1,FS_BOLD);
  14      $graph->axis->title->SetColor("blue");
  15  
  16      // Set position and size    
  17      $graph->SetCenter(0.5,0.55);
  18      $graph->SetTitles($axtitles);
  19      $graph->axis->SetFont(FF_FONT1,FS_BOLD);
  20      $graph->title->Set("Result 2001");
  21      $graph->title->SetFont(FF_FONT1,FS_BOLD);
  22      $graph->SupressTickMarks();
  23      
  24      $graph->grid->SetLineStyle("dashed");
  25      $graph->grid->SetColor("darkred");
  26      $graph->grid->Show();
  27  
  28  
  29      // Add the plot and display the graph
  30      $graph->Add($plot);
  31      $graph->Stroke();
  32  ?>
  33  
  34      


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