Thank you for the response asgallant. I am not sure how to get setColumnProperty working though. I would have thought data.setColumnProperty(3, 'role', 'tooltip') would set my 3rd column in the google spreadsheet to display in the tooltip, but this did not work. Here is my working code (without setColumnProperty):
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
</script>
<script type="text/javascript">
google.load('visualization', '1', {packages: ['linechart']});
google.setOnLoadCallback(drawVisualization);
function drawVisualization() {
// To see the data that this visualization uses, browse to
var query = new google.visualization.Query(
// Apply query language.
query.setQuery('SELECT A, B, D WHERE F = "Tom"');
// 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['legend']='bottom';
options['width'] = 700;
options['height'] = 300;
var view = new google.visualization.DataView(data);
var container = document.getElementById('chart_canvas');
var visualization = new google.visualization.LineChart(container);
visualization.draw(view, options);
}
</script>
</head>
<body style="font-family: Arial;border: 0 none;">
<div id="chart_canvas"></div>
</body>
</html>