[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 include ("../jpgraph.php"); 3 include ("../jpgraph_pie.php"); 4 5 // Some data 6 $data = array(40,21,17,14,23); 7 8 // Create the Pie Graph. 9 $graph = new PieGraph(300,200); 10 $graph->SetShadow(); 11 12 // Set A title for the plot 13 $graph->title->Set("Client side image map"); 14 $graph->title->SetFont(FF_FONT1,FS_BOLD); 15 16 // Create 17 $p1 = new PiePlot($data); 18 $p1->SetLegends(array("Jan","Feb","Mar","Apr","May","Jun","Jul")); 19 $targ=array("pie_csimex1.php#1","pie_csimex1.php#2","pie_csimex1.php#3", 20 "pie_csimex1.php#4","pie_csimex1.php#5","pie_csimex1.php#6"); 21 $alts=array("val=%v","val=%v","val=%v","val=%v","val=%v","val=%v"); 22 $p1->SetCSIMTargets($targ,$alts); 23 24 $graph->Add($p1); 25 $graph->Stroke(GenImgName()); 26 27 28 echo $graph->GetHTMLImageMap("myimagemap"); 29 echo "<img src=\"".GenImgName()."\" ISMAP USEMAP=\"#myimagemap\" border=0>"; 30 31 ?> 32 33
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 |