ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Tooltip for data in linechart
Posted by Em on Feb-13-2012 15:40
I have a line chart that have several lines. I am trying using addextraField to give extra information for each datapoint in the lines.

for($i=0;$i<$size;$i++){
$dataSetObj=$layer->addDataSet($dataSeries[$i], -1, $key[$i]);
$layer->addExtraField($data2[$i]);
}

$imageMap = $c->getHTMLImageMap("", "",      "title='{dataSetName},  {value|2} ( {field1} %) {x|mmm dd, yyyy}'");

However, all lines share the same field value in each x points. For example, if the tooltip is "aaa" at line 1 at x=123, then it is also "aaa" at line 2 at x=123; however, I might want to display "bbb" at line 2 at x=123.

Any ideas on how to achieve this?

Thanks,
Em

  Re: Tooltip for data in linechart
Posted by Peter Kwan on Feb-13-2012 22:34
Hi Em,

Instead of {field1}, please use {dsdiField0}.

Hope this can help.

Regards
Peter Kwan

  Re: Tooltip for data in linechart
Posted by Em on Feb-14-2012 00:55
Great, it works now! Thank you very much, Peter.

Regards,
-Em