SetShadow(); $graph->SetScale("linlin"); //$graph->img->SetMargin(40,40,40,40); $graph->title->Set("Scatter plot with Image Map"); $graph->title->SetFont(FF_FONT1,FS_BOLD); // Client side image map targets $targ=array("pie_csimex1.php#1","pie_csimex1.php#2","pie_csimex1.php#3", "pie_csimex1.php#4","pie_csimex1.php#5","pie_csimex1.php#6", "pie_csimex1.php#7","pie_csimex1.php#8","pie_csimex1.php#9" ); // Strings to put as "alts" (and "title" value) $alts=array("val=%d","val=%d","val=%d","val=%d","val=%d","val=%d","val=%d","val=%d","val=%d"); // Create a new scatter plot $sp1 = new ScatterPlot($datay,$datax); // Use diamonds as markerss $sp1->mark->SetType(MARK_DIAMOND); $sp1->mark->SetWidth(10); // Set the scatter plot image map targets $sp1->SetCSIMTargets($targ,$alts); // Add the plot $graph->Add($sp1); // Send back the HTML page which will call this script again // to retrieve the image. $graph->StrokeCSIM(); ?>