[ Index ] |
|
Code source de jpGraph 2.2 |
1 <?php 2 include ("../jpgraph.php"); 3 include ("../jpgraph_radar.php"); 4 5 // Some data to plot 6 $data = array(55,80,26,31,95); 7 $data2 = array(15,50,46,39,25); 8 9 // Create the graph and the plot 10 $graph = new RadarGraph(250,200,"auto"); 11 12 // Add a drop shadow to the graph 13 $graph->SetShadow(); 14 15 // Create the titles for the axis 16 $titles = $gDateLocale->GetShortMonth(); 17 $graph->SetTitles($titles); 18 $graph->SetColor('lightyellow'); 19 20 // ADjust the position to make more room 21 // for the legend 22 $graph->SetCenter(0.4,0.55); 23 $graph->SetSize(0.6); 24 25 // Add grid lines 26 $graph->grid->Show(); 27 $graph->grid->SetColor('darkred'); 28 $graph->grid->SetLineStyle('dotted'); 29 30 $plot = new RadarPlot($data); 31 $plot->SetFillColor('lightblue'); 32 $plot->SetLegend("QA results"); 33 34 $plot2 = new RadarPlot($data2); 35 $plot2->SetLegend("Target"); 36 $plot2->SetColor('red'); 37 $plot2->SetFill(false); 38 $plot2->SetLineWeight(2); 39 40 41 // Add the plot and display the graph 42 $graph->Add($plot); 43 $graph->Add($plot2); 44 $graph->Stroke(); 45 ?>
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 |
![]() |