[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 include ("../jpgraph.php"); 3 include ("../jpgraph_line.php"); 4 include ("../jpgraph_error.php"); 5 6 $errdatay = array(11,9,2,4,19,26,13,19,7,12); 7 $datax=array("Jan","Feb","Mar","Apr","May"); 8 9 // Create the graph. These two calls are always required 10 $graph = new Graph(300,200,"auto"); 11 $graph->img->SetMargin(40,30,20,40); 12 $graph->SetScale("textlin"); 13 $graph->SetShadow(); 14 $graph->xaxis->SetLabelAngle(0); 15 $graph->xaxis->SetFont(FF_ARIAL,FS_NORMAL,10); 16 $graph->img->SetAntiAliasing("white"); 17 18 // Create the linear plot 19 $errplot=new ErrorLinePlot($errdatay); 20 $errplot->SetColor("red"); 21 $errplot->SetWeight(2); 22 $errplot->SetCenter(); 23 $errplot->line->SetWeight(2); 24 $errplot->line->SetColor("blue"); 25 $errplot->SetLegend("Min/Max"); 26 $errplot->line->SetLegend("Average"); 27 // Add the plot to the graph 28 $graph->Add($errplot); 29 30 $graph->title->Set("Example 16"); 31 $graph->yaxis->title->Set("Y-title"); 32 $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 33 $graph->xaxis->title->Set("X-title"); 34 $graph->title->SetFont(FF_FONT1,FS_BOLD); 35 36 $graph->xaxis->SetTickLabels($datax); 37 $graph->xaxis->SetTextTickInterval(2); 38 39 // Display the graph 40 $graph->Stroke(); 41 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |