Brendan, DateTimeAxis is a NumericAxis and unlike CategoryAxis will not
return the index value; you could do something like this from the return
value of invertTransform

 

var d:Date = new Date;

d.setTime(Number(obj)); //obj is the return value from invertTransform

var str:String = d.toDateString();

 

-Sunil

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brendan Meutzner
Sent: Thursday, May 24, 2007 12:52 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Charting dataTransform.invertTransform() on
DateTimeAxis

 

Hi,

When implementing the dataTransform.invertTransform() method on a
DateTimeAxis instance, it seems the return value is the date value
represented... is there anyway to return the index value of the
dataProvider like a CategoryAxis would? 


Brendan



-- 
Brendan Meutzner
Stretch Media - RIA Adobe Flex Development
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> 
http://www.stretchmedia.ca <http://www.stretchmedia.ca>  

 

Reply via email to