RE: [flexcoders] overlapping series line chart - flex 1.5

2006-02-13 Thread Ely Greenfield








Robert --

the good news, this problem is dealt with in Flex 2 --- 
charts can display multiple datatips if the mouse is over multiple datapoints. 
The bad news is you're using Flex 1.5.

You could try and mimic this behavior by rewriting the 
datatip behaviors yourself. You have the mouseData events, which tell you 
when the mouse moves over and out of datapoints, and there's a method on the 
individual series called findDataPoint(x:Number,y:Number,sensitivity:Number); 
which you can call to find any datapoints at a given x/y coordinate. So 
you could, on mouseOverData events, iterate over the series, find out if there 
are multiple datapoints at that point, and show your own tooltip (using the 
popup manager) as appropriate.

(Another idea...set a custom dataTipFunction, and do the 
check for multiple data points _there_, and format your datatip string 
appropriately).

Ely.



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Robert 
BrueckmannSent: Monday, February 13, 2006 10:51 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] overlapping series 
line chart - flex 1.5



Does anyone have an 
elegant solution on how to handle a line chart when, for example, we have 3 
series in our line chartEquities, Assets, and a Total. 3 separate 
lines. In a specific case, Assets is 0 for all date points, so Equities 
and Total are exactly the same, hence their lines overlap each other 
identically. 

To a user, this might 
not be immediately intuitive if they only see the chart and not the underlying 
data. Is there a way to handle this? I mean would this just be a 
situation where wed have to pre-analyze the data of the chart, check if a 
specific series is identical to the total and if its true, in the mouse-over 
datatip renderer wed have to display something that indicates to the user that 
this series and the total are identical? Or is there some nifty built-in 
functionality to already handle such instances where series are 
identical?



robert l. 
brueckmann
vice 
president
merlin 
securities
595 madison 
avenue
16th 
floor
phone: 
212.822.4821
fax: 
212.822.4820




This message contains information fromMerlin Securities, LLC, 
or from one of its affiliates, that may be confidential and privileged. If you 
are not an intended recipient, please refrain from any disclosure, copying, 
distribution or use of this information and note that such actions are 
prohibited. If you have received this transmission in error, please notify the 
sender immediately by telephone or by replying to this 
transmission.
 
Merlin Securities, LLC is a registered broker-dealer. Services 
offered throughMerlin Securities, LLC are not insured by the FDIC or any 
other Federal Government Agency, are not deposits of or guaranteed 
byMerlin Securities, LLCand may lose value. Nothing in this 
communication shall constitute a solicitation or recommendation to buy or sell a 
particular 
security.





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] overlapping series line chart - flex 1.5

2006-02-13 Thread Robert Brueckmann









Thanks a lot Elyyour solution was
actually what we came up with earlier this afternoon so I guess great minds
think alike. J Thanks a lot and I cant wait to actually get some time to
play around with 2.0I dont know where all these people get all
this time to play!!!





robert l. brueckmann

vice president

merlin securities

595 madison avenue

16th floor

phone: 212.822.4821

fax: 212.822.4820











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ely Greenfield
Sent: Monday, February 13, 2006
4:06 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
overlapping series line chart - flex 1.5











Robert --



the good news, this problem is dealt with
in Flex 2 --- charts can display multiple datatips if the mouse is over
multiple datapoints. The bad news is you're using Flex 1.5.



You could try and mimic this behavior by
rewriting the datatip behaviors yourself. You have the mouseData events,
which tell you when the mouse moves over and out of datapoints, and there's a
method on the individual series called
findDataPoint(x:Number,y:Number,sensitivity:Number); which you can call to find
any datapoints at a given x/y coordinate. So you could, on mouseOverData
events, iterate over the series, find out if there are multiple datapoints at
that point, and show your own tooltip (using the popup manager) as appropriate.



(Another idea...set a custom
dataTipFunction, and do the check for multiple data points _there_, and format
your datatip string appropriately).



Ely.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Robert Brueckmann
Sent: Monday, February 13, 2006
10:51 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] overlapping
series line chart - flex 1.5



Does anyone have an elegant solution on
how to handle a line chart when, for example, we have 3 series in our line
chartEquities, Assets, and a Total. 3 separate lines. In a
specific case, Assets is 0 for all date points, so Equities and Total are
exactly the same, hence their lines overlap each other identically. 

To a user,
this might not be immediately intuitive if they only see the chart and not the
underlying data. Is there a way to handle this? I mean would this
just be a situation where wed have to pre-analyze the data of the chart,
check if a specific series is identical to the total and if its true, in
the mouse-over datatip renderer wed have to display something that
indicates to the user that this series and the total are identical? Or is
there some nifty built-in functionality to already handle such instances where
series are identical?



robert
l. brueckmann

vice president

merlin securities



595
  madison avenue



16th floor



phone: 212.822.4821

fax: 212.822.4820





















This message contains information
fromMerlin Securities, LLC, or from one of its affiliates, that may be
confidential and privileged. If you are not an intended recipient, please
refrain from any disclosure, copying, distribution or use of this information
and note that such actions are prohibited. If you have received this
transmission in error, please notify the sender immediately by telephone or by
replying to this transmission.





Merlin Securities, LLC is a registered
broker-dealer. Services offered throughMerlin Securities, LLC are not
insured by the FDIC or any other Federal Government Agency, are not deposits of
or guaranteed byMerlin Securities, LLCand may lose value. Nothing
in this communication shall constitute a solicitation or recommendation to buy
or sell a particular security.










This message contains information fromMerlin Securities, LLC, or from one of its affiliates, that may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify the sender immediately by telephone or by replying to this transmission.


Merlin Securities, LLC is a registered broker-dealer. Services offered throughMerlin Securities, LLC are not insured by the FDIC or any other Federal Government Agency, are not deposits of or guaranteed byMerlin Securities, LLCand may lose value. Nothing in this communication shall constitute a solicitation or recommendation to buy or sell a particular security.





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex