Re: [flexcoders] Using HitCount with a 100% BarChart

2005-05-09 Thread David Aden
Matt, 

Thanks! This got me to the right place. 

I'm using an array of Objects to feed the 100% bar chart that looks like: 

 var SecDash_Data = [   {area: Calendar, green:25, yellow:25, red:50},
{area: Plan, green:5, yellow:15, 
red:80},
{area: App, green:20, yellow:80, 
red:20},
{area: ISSO, green:35, yellow:30, 
red:35}]

'area' holds the name of each Bar that will be displayed; 'green',
'yellow' and 'red contain the figures that  are used to determine the
length of each section of the bar.

From the dumps, it looks like hitData.item contains the data in the
row corresponding to the bar that was clicked -- so contains an object
with the keys 'area', 'green', 'yellow' and 'red' and their values.

hitData.element contains a bunch of info, but included in it is: 

hitData.element.index: this contains the index to the item that was
clicked. If the green section is clicked, it will contain 0; if
yellow, 1, etc.

hitData.element.xField contains the name of the property that
corresponds to the section clicked. So, if a green area is clicked,
then it contains green.

d



On 5/8/05, Matt Chotin [EMAIL PROTECTED] wrote:
  
  
 
 The HitData should have all the info you need.  The item is the actual
 item that is being clicked and the element I think will be the series that
 you're clicking on. 
 
   
  
  
  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of David Aden
  Sent: Sunday, May 08, 2005 6:20 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Using HitCount with a 100% BarChart 
  
 
   
 
 I'm using a 100% BarChart  and have three different values stacked
  into each bar.
  
  I'm using the mouseClickData event when someone clicks on one of the
  sections of a bar and am getting HitData back with the event, but I'm
  not sure how to find out which of the three items in the bar was
  clicked.
  
  I know the data must be available because the ToolTip knows what has
  been moused over -- anyone have a quick suggestion on how to determine
  exactly what was clicked?
  
  thanks! 
  
  d
  
  
  
  Yahoo! Groups Links
  
  
 To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
   
 To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
   
 Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


-- 
--
David Aden
Webworld Technologies


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] Using HitCount with a 100% BarChart

2005-05-09 Thread Ely Greenfield



David --

 The 'element' field of the HitData structure is the series object that
generated the mouse event. That's why you're seeing all the same properties
(xField, yField, etc) that you assigned to the series objects of your chart.

Ely.


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of David Aden
Sent: Monday, May 09, 2005 12:04 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Using HitCount with a 100% BarChart
Importance: High

Matt, 

Thanks! This got me to the right place. 

I'm using an array of Objects to feed the 100% bar chart that looks like: 

 var SecDash_Data = [   {area: Calendar, green:25, yellow:25, red:50},
{area: Plan, green:5, yellow:15,
red:80},
{area: App, green:20, yellow:80,
red:20},
{area: ISSO, green:35, yellow:30,
red:35}]

'area' holds the name of each Bar that will be displayed; 'green',
'yellow' and 'red contain the figures that  are used to determine the
length of each section of the bar.

From the dumps, it looks like hitData.item contains the data in the
row corresponding to the bar that was clicked -- so contains an object
with the keys 'area', 'green', 'yellow' and 'red' and their values.

hitData.element contains a bunch of info, but included in it is: 

hitData.element.index: this contains the index to the item that was
clicked. If the green section is clicked, it will contain 0; if
yellow, 1, etc.

hitData.element.xField contains the name of the property that
corresponds to the section clicked. So, if a green area is clicked,
then it contains green.

d



On 5/8/05, Matt Chotin [EMAIL PROTECTED] wrote:
  
  
 
 The HitData should have all the info you need.  The item is the actual
 item that is being clicked and the element I think will be the series
that
 you're clicking on. 
 
   
  
  
  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of David Aden
  Sent: Sunday, May 08, 2005 6:20 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Using HitCount with a 100% BarChart 
  
 
   
 
 I'm using a 100% BarChart  and have three different values stacked
  into each bar.
  
  I'm using the mouseClickData event when someone clicks on one of the
  sections of a bar and am getting HitData back with the event, but I'm
  not sure how to find out which of the three items in the bar was
  clicked.
  
  I know the data must be available because the ToolTip knows what has
  been moused over -- anyone have a quick suggestion on how to determine
  exactly what was clicked?
  
  thanks! 
  
  d
  
  
  
  Yahoo! Groups Links
  
  
 To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
   
 To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
   
 Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


-- 
--
David Aden
Webworld Technologies


 
Yahoo! Groups Links



 




 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] Using HitCount with a 100% BarChart

2005-05-08 Thread Matt Chotin










The HitData should have all the info you
need. The item is the actual item that is being clicked and the element
I think will be the series that youre clicking on.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of David Aden
Sent: Sunday, May 08, 2005 6:20 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Using
HitCount with a 100% BarChart





I'm using a 100% BarChart and have three different values stacked
into each bar.

I'm using the mouseClickData event when someone
clicks on one of the
sections of a bar and am getting HitData back with
the event, but I'm
not sure how to find out which of the three items
in the bar was
clicked.

I know the data must be available because the
ToolTip knows what has
been moused over -- anyone have a quick suggestion
on how to determine
exactly what was clicked?

thanks! 

d












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.