You need to add a listener for the regionClick event to the chart with *google.visualization.events.addListener*.
Here's a crude example: http://jsfiddle.net/m6k2k/3/ The relevant code snippet: var *el* = document.getElementById('vis'); var *chart* = new *google.visualization.GeoChart*(*el*); *chart*.draw(*data*, *options*); *google.visualization.events.addListener*( *chart*, /* the Chart object */ 'regionClick', /* the Event to listen for */ function (*e*) { /* the Handler function */ // *e* is an object with a region property window.open('./' + *e.region* + '.html'); }); Thomas Rybka | Software Engineer | [email protected] | Google On Sat, Feb 1, 2014 at 5:59 PM, Ivan Polednik <[email protected]>wrote: > Hello, > I'm beginner with javasrcipt and I need your help. I'd like to make > clickable map of Europe, but I don't know how to do, that if someone clicks > on some region for example Russia, then it will link him to russia.html. > > I should probably write somtehing in here, but I really dont know. > > onRegionClick: function(element, code, region) > { > } > > Thanks! > > -- > 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/groups/opt_out. > -- 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/groups/opt_out.
