The map doesn't pass any region information back when you select a country, 
so you won't be able to get it that way, but if you include the region 
information in the DataTable (as an extra column, filtered out with a 
DataView so the chart can't see it), you can pull the info from the 
DataTable.

On Wednesday, May 22, 2013 10:34:42 AM UTC-4, [email protected] wrote:
>
> This is a really useful example. But, can it be adapted to return the 
> region (e.g. Europe) from the select, rather than the country from a world 
> map?
>
> On Tuesday, June 26, 2012 1:44:45 AM UTC+2, Marc Lucchini wrote:
>>
>> You'll have to listen to the 
>> "select<https://developers.google.com/chart/interactive/docs/gallery/geochart#Events>"
>>  
>> or the 
>> "regionClick<https://developers.google.com/chart/interactive/docs/gallery/geochart#Events>"
>>  
>> event.
>> An example using the select event: http://jsfiddle.net/dz2xS
>>
>> If your country pages already exist and you can't or don't want to change 
>> their URLs, you may have to put these URLs in your datatable and pass a 
>> dataview to the geochart.
>>
>> Le lundi 25 juin 2012 23:25:41 UTC+2, Susanna Murley a écrit :
>>>
>>> I want to create a geochart that allows me to set urls for regions. For 
>>> example, if someone clicks on California in my map, I want it to link to a 
>>> separate page on my site. How do I do this?
>>
>>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to