Yes Sachin, that makes sense.
 
This is possible to do, with a little bit of extension.
 
The easiest way to do this would be by writing a custom lineSegmentRenderer. The line segment renderer is the component used by the line series to render the actual line.  It gets passed an array of LineSeriesItems, each of which contains all the x and y values for the point it represents.
 
So I'd write a custom line renderer that:
 
- draws the line segment itself.
- for each segment of the line:
    - check and see if it crosses your y threshold
    - if it does
        - figure out the x position for the crossing point
        - draw a vertical line from 0 to unscaledHeight at that x position.
 
Make sense?
 
Ely.
 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sachin Dharmapurikar
Sent: Sunday, April 02, 2006 8:45 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Putting markers on chart

Hi Ely,
    We wan't to put a vertical line on X-Axis value for which the Y-axis value exceeds a threshold. E.g. following are the input sets -

X-Axis Values : [ 11:00, 12:00, 13:00]
Y-Axis Values: [47,67,31]

Now there should be a way to define threshold on Y-Axis. If I set the threshold on 50 then all values > 50 should have a vertical line drawn on corrosponding X-Axis value. In our example on 12:00 the vertical line should appear.

Does that make any sense to you?

Sachin

On 4/3/06, Ely Greenfield <[EMAIL PROTECTED]> wrote:
 
 
Sachin, can you explain a little further?  are you looking for a vertical line at a particular X value? or a horizontal line at a particular y value?
 
Ely.
 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Sachin Dharmapurikar
Sent: Saturday, April 01, 2006 7:23 PM
To: Flexcoders
Subject: [flexcoders] Putting markers on chart

Hi,

I am developing a charting application. I am simulating a live chart which is updated after finite interval. X-Axis of the chart is going to have dates and Y-Axis will have Numbers. I want to put a red line marker when the value of Y-axis crosses a particular value. Sample image is attached.

Is it possible to do this using Flex line charting?

Thanks,
Sachin


--
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






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




YAHOO! GROUPS LINKS




Reply via email to