|
tooltip showing data not from the dataset |
Posted by Stephen on Mar-07-2012 12:08 |
|
Hi Peter,
I am drawing a line chart of price performance in term of % against Date, so the x-axis is the date, y-axis is the percentage up/down in daily basis.
Since the getHTMLImageMap is showing the dataset from the data of % and date, Other than the showing the % and date in the imagemap, How can the ImapeMap also able to show the fund price as well?
Regards,
Stephen |
Re: tooltip showing data not from the dataset |
Posted by Peter Kwan on Mar-08-2012 00:54 |
|
Hi Stephen,
You can supply the fund prices as an extra array to the line layer using Layer.addExtraField. Then in the image map, you can use {field0} to represent the fund price.
For example, in PHP, it is like:
$myLineLayer->addExtraField($myArrayOfFundPrices);
.....
$imageMap = $c->getHTMLImageMap("...". "...", "title='{field0} ({value}%)'");
Hope this can help.
Regards
Peter Kwan |
|