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

   1  <?php
   2      include  ("../jpgraph.php");
   3      include  ("../jpgraph_spider.php");
   4      
   5      $graph = new SpiderGraph(300,200,"auto");
   6      $graph->SetColor("white");
   7      $graph->SetShadow();
   8      $graph->SetCenter(0.4,0.55);
   9      
  10      $graph->axis->SetFont(FF_FONT1,FS_BOLD);
  11      $graph->axis->SetWeight(2);
  12      $graph->grid->SetLineStyle("longdashed");
  13      $graph->grid->SetColor("navy");
  14      $graph->grid->Show();
  15      $graph->SupressTickMarks();
  16          
  17      $graph->title->Set("Quality result");
  18      $graph->title->SetFont(FF_FONT1,FS_BOLD);
  19      $graph->SetTitles(array("One","Two","Three","Four","Five","Sex","Seven","Eight","Nine","Ten"));
  20          
  21      $plot = new SpiderPlot(array(30,80,60,40,71,81,47));
  22      $plot->SetLegend("Goal");
  23      $plot->SetColor("red","lightred");
  24      $plot->SetFill(false);
  25      $plot->SetLineWeight(2);
  26  
  27      $plot2 = new SpiderPlot(array(70,40,30,80,31,51,14));
  28      $plot2->SetLegend("Actual");
  29      $plot2->SetColor("blue","lightred");
  30  
  31      $graph->Add($plot2);
  32      $graph->Add($plot);
  33      $graph->Stroke();
  34  
  35  ?>


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