|
how to add extra tool tips on custom click chart? |
Posted by techsoft on Aug-24-2015 14:00 |
|
Hi Peter,
I have created custom clickable chart. I want to show some other values like close
price,no.of contracts for each day in the tool tip with the open interest as in the below
image.
Thanks,
Techsoft
|
Re: how to add extra tool tips on custom click chart? |
Posted by techsoft on Aug-24-2015 15:31 |
|
Hi peter,
In addition with the previous question I would like to know how to set margin for Open
interest and Trade quantity indicators which is shown in the top of the chart.
Thanks,
Techsoft |
Re: how to add extra tool tips on custom click chart? |
Posted by Peter Kwan on Aug-24-2015 18:11 |
|
Hi techsoft,
To add other fields in the tooltips, you may use Layer.addExtraField to attach the fields to
the layers. For example:
$layer->addExtraField($closePriceArray);
$layer->addExtraField($noOfContractsArray);
......
$chartImageMap = $c->getHTMLImageMap("xystub.php", "",
"title='{dataSetName} @ {xLabel} = USD {value|0} millions, close price = {field0}, no. of
contracts = {field1}'");
For "how to set margin for Open interest and Trade quantity indicators which is shown in
the top of the chart", I am not too sure what you mean. At the inside-top of the plot area,
there is a legend box with two legend entries. The margin of the legend box can be
configured with Box.setMargin. The axes also has margins (Axis.setMargin). The spacing
between the legend icons can be configured using LegendBox.setKeySpacing.
If the above is not what you need, may be you can attach an image that shows what you
want to achieve to help me understand your requirements.
Regards
Peter Kwan |
Re: how to add extra tool tips on custom click chart? |
Posted by techsoft on Aug-24-2015 18:57 |
|
hi Peter,
Thanks for your reply. I have made the changes as like you mentioned and i'm sorry about
the second question but your answer was right. Below is the new graph generated.
Thanks,
Techsoft
|
|