Flash Charting

Aight, Ive got this charting software that we use that generates a jpg on the fly but it is crap and I want to redo something like it in Flash. Attached is an image of what the current 1 looks like. Any ideas or code to help me get started?