GetHTMLImageMap($_mapname1); $imgmap2 = $piegraph->GetHTMLImageMap($_mapname2); echo $imgmap1; echo $imgmap2; ?>

This is an example page with CSIM graphs with arbitrary HTML text

Clicked on bar: <none>'; } else { echo 'Clicked on bar: '.$_GET['clickedon'].''; } echo '

'; if( empty($_GET['pie_clickedon']) ) { echo 'Clicked on pie slice: <none>'; } else { echo 'Clicked on pie slice: '.$_GET['pie_clickedon'].''; } echo '

'; ?>

First we need to get hold of the image maps and include them in the HTML page.

For these graphs the maps are:

'.htmlentities($imgmap1).'
'; ?>

and

'.htmlentities($imgmap2).'
'; ?> tags for Figure 1 & 2 and rebuild the URL arguments $imgtag1 = $graph->GetCSIMImgHTML($_mapname1,$_graphfilename1); $imgtag2 = $piegraph->GetCSIMImgHTML($_mapname2,$_graphfilename2); ?>

The graphs are then displayed as shown in figure 1 & 2. With the following created <img> tags:


Note: For the Pie the center is counted as the first slice.


Figure 1. The included Bar CSIM graph.


Figure 2. The included Pie CSIM graph.