it finally works. I get the required graph. And it closely resembles sent values. I thank you for your help.

I'll go play with Flex to see if I can create a little more dynamic graph and everything but essentially I'm done. Mission acomplished.

ps. Can I get source code from that Flash stocklist demo just so I could see what it looks like? it may be of help in making flash application.