If you get time to do this Sachin, love to see what you produce code-wise….don’t got time to tinker with it at the moment myself J

_________________________________________

Jonathan Miranda

Flexible Master of the Web

"Try not to become a man of success, but a man of value." - Albert Einstein

HealthGrades: Guiding America to Better Healthcare™

NASDAQ: HGRD

w  (720) 963-3832

c  (707) 761-0868

[EMAIL PROTECTED]

_________________________________________

The message contains confidential and/or legally privileged information and is intended for use only by the indicated addressee.  If you are not the named addressee you should not disseminate, distribute, or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmissions cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed,arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ely Greenfield
Sent: Monday, April 03, 2006 11:15 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Putting markers on chart

 

 

 

 

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:flexcoders@yahoogroups.com] 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




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