What am I doing wrong here:

I'm creating a chart - I have a couple of sheets in that spreadsheet.  

I try to display this one:
https://docs.google.com/spreadsheets/d/1V7PQeblNtDPZ2I0UwsdoG-rSfHyrGqi8_xaRY9AtXi0/edit#gid=1102662834

but it always displays just this one:
https://docs.google.com/spreadsheets/d/1V7PQeblNtDPZ2I0UwsdoG-rSfHyrGqi8_xaRY9AtXi0/edit#gid=0

THANKS A LOT FOR YOUR HELP IN ADVANCE!  I SPENT HOURS AND COULDN'T figure 
it out.

Posting the code below - the same is in attachment just in case the text 
below will not post as text (my first post in this forum).

<html>
  <head>
    <!--Load the AJAX API-->
    <script type="text/javascript" 
src="https://www.google.com/jsapi";></script>
    <script type="text/javascript">

      // Load the Visualization API and the piechart package.
      google.load('visualization', '1.0', {'packages':['corechart']});

      // Set a callback to run when the Google Visualization API is loaded.
      google.setOnLoadCallback(drawVisualization);

      // Callback that creates and populates a data table, 
      // instantiates the pie chart, passes in the data and
      // draws it.
      function drawVisualization() {

        // Create the data table.
var wrapper = new google.visualization.ChartWrapper({
chartType: 'GeoChart',
dataSourceUrl: 
'https://docs.google.com/spreadsheets/d/1V7PQeblNtDPZ2I0UwsdoG-rSfHyrGqi8_xaRY9AtXi0/edit#gid=1102662834,
 
DebtpercentofGDP',
query: 'SELECT A,BA,BB where BA > 0 ORDER BY BA',
options: {'title': 'Countries'},
 colorAxis: {colors: ['#00853f', 'red', '#e31b23']},
          backgroundColor: 'black',
          datalessRegionColor: '#f8bbd0',
          defaultColor: '#f5f5f5',
containerId: 'vis_div'
});
wrapper.draw();
      }

    </script>
  </head>
  <body>
<b>Country's Debt as % of GDP</b> (up 2012, below 2011)
    <!--Div that will hold the pie chart-->
    <div id="vis_div" style="width:1100; height:700"></div>
  </body>
</html>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.
Country's Debt as % of GDP (up 2012, below 2011)

Reply via email to