Not quite straightforward, but it still works:

  // chart is the chart you want to display the datatip on
  // xValue and yValue are the item's values on the x and y axis

  var p:Point = chart.dataToLocal(xValue, yValue);
  var m:MouseEvent = new MouseEvent(MouseEvent.MOUSE_OVER, true, false,
p.x, p.y);
  chart.dispatchEvent(m); 

Dirk.

> -----Original Message-----
> From: [email protected] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Claude Hussenet
> Sent: Tuesday, May 01, 2007 6:09 PM
> To: [email protected]
> Subject: [flexcoders] How to display Chart datatip at a 
> specific data point ?
> 
> Problem:
> I would like to display chart datatip from a set of datapoint 
> without doing a mouse over.
> 
> It seems that I have to overwrite the findDataPoints method 
> from ChartBase and returns an array of HitData points.
> 
> I can not figure out how to create a HitData object from a 
> specific datapoint regardless of the position of the mouse.
> 
> Maybe a new method such as showDataTip on chartBase taking as 
> parameter an array of indexes defining the datapoint from the 
> dataprovider object could be helpfull.
> 
> Thx for any hints.
> 
> Claude Hussenet
> 
> 
> 
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
> 
> 
> 
> 

Reply via email to