|
Image maps for finance charts |
Posted by Iceman on Oct-29-2009 02:42 |
|
Hi, I am using the Finance chart of Chartdirector, now i want to use with image maps, so when i use $imageMap = $c->getHTMLImageMap("", "", "$showText$hideText$toolTip"); i get the image maps of all the charts on the single image. i.e I just need the image map of the candlestick, but it get of the volume bars, etc also.
Please can anyone let me now how to get the image maps of specfic charts
Any help would be really appreciated
thanks |
Re: Image maps for finance charts |
Posted by Peter Kwan on Oct-29-2009 22:52 |
|
Hi Iceman,
If you just want to get the image map for the candlestick layer, you can use the following method:
#modify the existing line that you use to add the candlestick layer to store the returned
#value in a variable $layer
$layer = $myFinanceObj->addCandleStick(....);
#set a special image map for the candlestick layer
$layer->setHTMLImageMap("{none}", "{none}", "title='[{xLabel|mmm dd,yyyy}] Open:{open|%s}, High:{high|%s}, Low:{low|%s}, Close:{close|%s}'");
.... create chart as usual ......
.... output chart as usual ......
#Get the image map - the default is to disable the image map, so the image map of all
#layers are disabled. The candlestick layer is not using the default, so it will be in the output.
$imageMap = $myFinanceObj->getHTMLImageMap("{disable}");
Hope this can help.
Regards
Peter Kwan |
|