google / google-visualization-issues

288 stars 35 forks source link

Link capability in countries #953

Open orwant opened 9 years ago

orwant commented 9 years ago
What would you like to see us add to this API?

Link capability in each country with or without values, thank you!

What component is this issue related to (PieChart, LineChart, DataTable,
Query, etc)? GeoChart

*********************************************************
For developers viewing this issue: please click the 'star' icon to be
notified of future changes, and to let us know how many of you are
interested in seeing it resolved.
*********************************************************

Original issue reported on code.google.com by santunezp on 2012-07-11 15:26:36

orwant commented 9 years ago
use following way to link your country name :- 
   var geochart = new google.visualization.GeoChart(document.getElementById('visualization'));
    google.visualization.events.addListener(geochart, 'select', function() {    
        var selectionIdx = geochart.getSelection()[0].row;
        var countryName = data.getValue(selectionIdx, 0);   
        location.replace('http://localhost/geocharting/state.php?country='+countryName);
    }); 

Original issue reported on code.google.com by rajeev.syscraftonline on 2013-01-05 06:58:39

orwant commented 9 years ago
Thank you, Rajeev!
I'll be using this code in the future.

Original issue reported on code.google.com by santunezp on 2013-01-06 23:13:49