[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 include ("../jpgraph.php"); 3 include ("../jpgraph_error.php"); 4 5 $errdatay = array(11,9,2,4,19,26,13,19,7,12); 6 $datax=array("Jan","Feb","Mar","Apr","May"); 7 8 // Create the graph. These two calls are always required 9 $graph = new Graph(300,200,"auto"); 10 $graph->img->SetMargin(40,30,20,40); 11 $graph->SetScale("textlin"); 12 $graph->SetShadow(); 13 14 // Create the linear plot 15 $errplot=new ErrorPlot($errdatay); 16 $errplot->SetColor("red"); 17 $errplot->SetWeight(2); 18 //$errplot->SetCenter(); 19 // Add the plot to the graph 20 $graph->Add($errplot); 21 22 $graph->title->Set("Example 13"); 23 $graph->xaxis->title->Set("X-title"); 24 $graph->yaxis->title->Set("Y-title"); 25 26 $graph->title->SetFont(FF_FONT1,FS_BOLD); 27 $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 28 $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 29 30 $graph->xaxis->SetTickLabels($datax); 31 //$graph->xaxis->SetTextTickInterval(2); 32 33 // Display the graph 34 $graph->Stroke(); 35 ?>
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 |