Inserting data in chart

This post helped me to get MySQL to Chart going. may be it will help you too,
if you share the code, may be i can give it a try