[ 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/ -> spiderex5.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  
  14      // Set position and size    
  15      $graph->SetCenter(0.5,0.55);
  16      $graph->SetTitles($axtitles);
  17      $graph->title->Set("Result 2001");
  18      $graph->title->SetFont(FF_FONT1,FS_BOLD);
  19      $graph->axis->title->SetFont(FF_ARIAL,FS_BOLD);
  20      $graph->SupressTickMarks();
  21      $graph->SetShadow();
  22      $graph->SetColor(array(200,230,230));
  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