Hello, Most of the examples I see has the vis-api related scripts within the head of the html page : http://code.google.com/apis/visualization/documentation/gallery/columnchart.html#Example <html> <head> <script type="text/javascript" src="http://www.google.com/jsapi"></ script> <script type="text/javascript"> google.load("visualization", "1", {packages:["corechart"]}); google.setOnLoadCallback(drawChart); function drawChart() { //rest of the codes here } </script> </head>
Should we always place the vis-api calls within the head section? what if the function that will draw the chart is on another script file which loads at the bottom of the page?? -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
