Hi there! I have just started learning javascript and to further my knowledge I have decided to try writing a simple library for some of the Google Visualization methods. Everything was working smoothly up until the point where I referenced 'google.visualization' in the line
new google.visualization.LineChart(document.getElementById(myChart.elementid)) (myChart.elementid is a seperate chart class with property elementid which is an element on the page) Firebug was throwing up the error "google.visualization is undefined". I put some breakpoints in and went through the code to see where it had failed and it pointed towards the line with the code new google.visualization.LineChart(document.getElementById(myChart.elementid)) The HTML page that I am using to debug the library has included the library js file and the google JS api file. Both of these are correctly refrenced as the methods are carried out. Also inside the library is a line, which seems to work. google.load('visualization', '1', {packages: ['corechart']}); I really have no idea what is going wrong here, I don't even know whether what I am trying to do is possible! Any advice or alternative solutions would be greatly appreciated. Cheers in advance! Dan -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.