hi
plz help me,i'm just stuck over
1.after the alert message i have to display that particular states
information in tabular formatted
2.when hover on any of the state that should display that states
information in pie and column chart
function drawVisualization() {
var query = new google.visualization.Query(
'https://docs.google.com/spreadsheet/ccc?key=0ArFGfpB6duBGdFBJNVI1c3liaXd0c3l3UVNFMmZoMEE#gid=0'
);
query.setQuery('SELECT C');
query.send(handleQueryResponse);
}
function handleQueryResponse(response) {
if (response.isError()) {
alert('Error in query: ' + response.getMessage() + ' ' +
response.getDetailedMessage());
return;
}
var data = response.getDataTable();
var map = new
google.visualization.GeoChart(document.getElementById('visualization'));
google.visualization.events.addListener(map, 'select', function() {
var selection= map.getSelection();
var value = data.getValue(selection[0].row, 0);
alert(value);
if(value==""){
map.draw(newData, newOptions);
});
map.draw(data,{width: 700, height: 400, region: 'IN', resolution:
'provinces' });
}
google.setOnLoadCallback(drawVisualization);
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-visualization-api/-/BalyMG2Uxd0J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.