I am trying to get code for visualization geomap gleaned from Google Code Playground to work in my Google Site. I have used the code below in an Apps Script. The functions seem to work, i.e. I don't get any errors, but nothing shows and I get the following message: "The script completed but did not return anything.".
Here is the code I am using: ------------------------------ // Script-as-app template. function doGet() { var app = UiApp.createApplication(); function drawVisualization() { var data = google.visualization.arrayToDataTable([ ['Country', 'Popularity'], ['Germany', 200], ['United States', 300], ['Brazil', 400], ['Canada', 500], ['France', 600], ['RU', 700] ]); var geomap = new google.visualization.GeoMap( document.getElementById('visualization')); geomap.draw(data, null); } //app.close(); //return app; } ------------------------- The last two lines are commented out to see the message above... HELP HELP HELP -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsubscr...@googlegroups.com. To post to this group, send email to google-visualization-api@googlegroups.com. Visit this group at http://groups.google.com/group/google-visualization-api. For more options, visit https://groups.google.com/groups/opt_out.