|
Extrafields and datasets |
Posted by adrien on Mar-03-2011 21:53 |
|
Hi,
I'm using ChartDirector, and I'm stuck!
So I need your help.
I've built a XYChart (based on uneven chart example) on which I added two layers.
I need the tooltip to display extra informations only for dots which come from the first layer.
Therefore, I added 2 extrafield on my first layer with function "addExtraField".
and call the "getHTMLImageMap" function that way:
xyChart.getHTMLImageMap("", "","title='{dataSetName} on {x|mm/dd/yyyy} at {value}h:
{dsField1} {dsField0}' ")
It works for the layer 1 and display needed information when user let the mouse over
corresponding dots.
Unfortunately, for the second it prints the values: {dsField0} {dsField1} instead of empty
values.
Is there a workaround to this problem? |
Re: Extrafields and datasets |
Posted by Peter Kwan on Mar-04-2011 00:04 |
|
Hi adrien,
You may use Layer.setHTMLImageMap to configure a special tooltip for a layer. For example:
layer.setHTMLImageMap("", "","title='{dataSetName} on {x|mm/dd/yyyy} at {value}h: {dsField1} {dsField0}' ")
Then when you call:
imageMap = xyChart.getHTMLImageMap("", "","title='{dataSetName} on {x|mm/dd/yyyy} at {value}h' ")
The tooltip will contain {dsField1} {dsField0} only for one layer. For the other layers, the tooltip will be '{dataSetName} on {x|mm/dd/yyyy} at {value}h'.
Hope this can help.
Regards
Peter Kwan |
Re: Extrafields and datasets |
Posted by adrien on Mar-04-2011 00:34 |
|
Peter,
Thank you very much! It works fine! |
|