Hello Anjali
Thank you so much for correcting the script :-)
When I dropped your script into a single HTML it just presented a blank DIV section, however when I split it into a .js script file and a HTML file it worked like a charm :-)
http://www.cuedup.biz/VGraphing/demoui/GP01b.html
Thank you so very much ;-)