I'm creating a chart - I have a couple of sheets in that spreadsheet.
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">
// 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',
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>