[ Index ] |
|
Code source de jpGraph 2.2 |
1 <?php 2 include ("../jpgraph.php"); 3 include ("../jpgraph_radar.php"); 4 5 // Create the basic rtadar graph 6 $graph = new RadarGraph(300,200,"auto"); 7 8 // Set background color and shadow 9 $graph->SetColor("white"); 10 $graph->SetShadow(); 11 12 // Position the graph 13 $graph->SetCenter(0.4,0.55); 14 15 // Setup the axis formatting 16 $graph->axis->SetFont(FF_FONT1,FS_BOLD); 17 $graph->axis->SetWeight(2); 18 19 // Setup the grid lines 20 $graph->grid->SetLineStyle("longdashed"); 21 $graph->grid->SetColor("navy"); 22 $graph->grid->Show(); 23 $graph->HideTickMarks(); 24 25 // Setup graph titles 26 $graph->title->Set("Quality result"); 27 $graph->title->SetFont(FF_FONT1,FS_BOLD); 28 $graph->SetTitles(array("One","Two","Three","Four","Five","Sex","Seven","Eight","Nine","Ten")); 29 // Create the first radar plot 30 $plot = new RadarPlot(array(30,80,60,40,71,81,47)); 31 $plot->SetLegend("Goal"); 32 $plot->SetColor("red","lightred"); 33 $plot->SetFill(false); 34 $plot->SetLineWeight(2); 35 36 // Create the second radar plot 37 $plot2 = new RadarPlot(array(70,40,30,80,31,51,14)); 38 $plot2->SetLegend("Actual"); 39 $plot2->SetColor("blue","lightred"); 40 41 // Add the plots to the graph 42 $graph->Add($plot2); 43 $graph->Add($plot); 44 45 // And output the graph 46 $graph->Stroke(); 47 48 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Nov 24 09:27:55 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |