You can create an event listener for the select event and use the row and 
column data returned from the event to get the URL information from your 
DataTable object.  You can then set window.location to the URL and it will 
be as if the user clicked a link.  As an example:

/*  assumes:
 *    data is the DataTable object
 *    chart is the chart object
 *    URL's are stored as a property, named "URL", of the cells
 */
new google.visualization.events.addListener(chart, 'select', function() {
    var selection = chart.getSelection()[0];
    window.location = data.getProperty(selection.row, selection.column, 
"URL");
});

-- 
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/-/UlLaBh3vIwEJ.
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.

Reply via email to