wondering how I could use the tooltip object or some other new feature
to hide my second column
of datay from the tool tip.
Here's the chart:
http://www.auburn.edu/~jpw0011/stu_map.php
It calls external data from a spreadsheet in google docs, and so far
I've been unable to find any
documentation dealing with querying external data and reformatting how
the data will appear on
the tool tip. I just want the country name to appear, not the "1" I'm
only using as a means to
change the default color of the highlighted countries.
How can I hide the ": 1" and keep it off the tool tip?
THanks
Here's the code from the link above:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta charset="utf-8" />
<script type='text/javascript' src='https://www.google.com/jsapi'></
script>
<script type='text/javascript'>
google.load('visualization', '1', {'packages': ['geochart']});
google.setOnLoadCallback(drawRegionsMap);
function drawRegionsMap() {
var query = new google.visualization.Query(
'https://docs.google.com/spreadsheet/tq?key=0Ah2-
ECiQ9qQBdEYyc25RWjdrbzRieXVEQmhkZ0tWalE&headers=0');
// Send the query with a callback function.
query.send(handleQueryResponse);
}
function handleQueryResponse(response) {
if (response.isError()) {
alert('Error in query: ' + response.getMessage() + ' ' +
response.getDetailedMessage());
return;
}
var data = response.getDataTable();
var options = {};
options['region'] = 'world';
options['resolution'] = 'countries';
options['width'] = 700;
options['height'] = 300;
options['colors'] = ['#f1f1f1','#03244d'];
options['legend'] = 'none';
var container = document.getElementById('map_canvas');
var geochart = new google.visualization.GeoChart(container);
geochart.draw(data, options);
};
</script>
</head>
<body>
<div id='map_canvas'></div>
</body>
</html>
J
On Dec 9, 8:36 am, asgallant <drew_gall...@abtassoc.com> wrote: