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 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 chart…Equities, 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 we’d have to pre-analyze the data of the chart, check if a specific series is identical to the total and if it’s true, in the mouse-over datatip renderer we’d 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 from Merlin 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 through Merlin Securities, LLC are not insured by the FDIC or any other Federal Government Agency, are not deposits of or guaranteed by Merlin Securities, LLC and 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




Reply via email to