For everyone's reference:

The solution found.

I did:

var ci:Object = event.hitData.chartItem.itemRenderer;
var openData:Number = ci.data.open;
var closeData:Number = ci.data.close;
var openTime:String = ci.data.openValue;
var closeTime:String = ci.data.closeValue;
var startDate:String = event.hitData.item.startDate;

Thank you for all the help,

Sean - HeliHobby.com



--- In flexcoders@yahoogroups.com, "helihobby" <[EMAIL PROTECTED]> wrote:
>
> Hello,
> I have a problem which I am sure is easy to solve but I am missing 
a 
> piece of the pazzle.
> 
> I have a CandleStickChart.
> 
> In my candle stick chart I have an underline array collection.
> 
> My array collection looks like this:
> 
> [Bindable]
> private var expensesAC:ArrayCollection = new ArrayCollection( [
> { Date: "25-Jul", Open1: 40,  High1: 40, Low1: 20, Close1:20 , 
Open2: 
> 42,  High2: 42, Low2: 48, Close2:48 , Open3: 60,  High3: 60, Low3: 
> 50, Close3:50} ]);
> 
> As you can see, I have a single column which is broken into 
multiple 
> Open/Close High/Low + an index number ( 1 - 10 )
> 
> I have an event so whenever an item is clicked on the chart I grab 
it 
> such as:
> 
> 
> private function selectBox(event:ChartItemEvent):void {          
>                       
> 
>                       trace("A TimeClockID: " + 
> event.hitData.item.Open1);
>                       trace("B TimeClockID: " + 
> event.hitData.chartItem.index);                       
                
>                               
>                       trace("C TimeClockID: " + 
> event.hitData.chartItem.itemRenderer.name);                   
>                                               
>                       trace("D TimeClockID: " + event.hitSet.valueOf
> ());
>                       trace("D TimeClockID: " + event.hitSet);
>        
>                       
> 
> }
> 
> The problem is that I can not find away to figure out which 
specific 
> column in the candle stick chart the user clicked on.
> 
> In other words, if you look at:
> 
> trace("A TimeClockID: " + event.hitData.item.Open1);
> 
> I get the valid data which Open1 holds.
> 
> However, I do not know if the user clicked on Open1 or Open2 or 
Open3.
> 
> I just know which object in the chart he clicked on, but I DO NOT 
> KNOW which object he clicked on within the object ( i.e.: did he 
> click on Open1 or 2 ... 3 ... ) .
> 
> How can I figure this out ...
> 
> Help........
> 
> Regards,
> Sean.
>


Reply via email to