So I finally figured it out guys. Posting here should anyone else need it.
google.setOnLoadCallback(drawRegionsMap);
>
> function drawRegionsMap() {
>
> function selectHandler() {
>
> var selection = chart.getSelection();
> var state = data.getValue(selection[0].row,0);
>
> alert('You selected ' + state);
>
> //window.location = "../" + state
> +"-list/";
> }
>
> var data = google.visualization.arrayToDataTable([
> ['States'],
> ['Washington'],
> ['Oregon'],
> ['Idaho'],
> ['Arizona'],
> ['Utah']
> ]);
>
> var options = {
> region: 'US',
> dataMode: 'regions',
> resolution:'provinces',
> enableRegionInteractivity: true
> };
>
> var chart = new
> google.visualization.GeoChart(document.getElementById('regions_div'));
>
> chart.draw(data, options);
>
> google.visualization.events.addListener(chart, 'select',
> selectHandler);
> }
>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.