[visualization-api] Re: Link on interactive google Chart

2012-12-28 Thread Chia Wei Han
Hi, I have added what you recommended but its not working.. html head script type=text/javascript src=https://www.google.com/jsapi;/script script type=text/javascript google.load(visualization, 1, {packages:[corechart]}); google.setOnLoadCallback(drawChart); function

[visualization-api] Re: Link on interactive google Chart

2012-12-28 Thread asgallant
That code snippet is missing the visualization keyword in google.visualization.events... google.visualization.events.addListener(chart, 'select', function() { // whatever you want, ex: window.location.replace(http://www.google.com;) }); is what you need. I accidentally left that out of

[visualization-api] Re: Link on interactive google Chart

2011-07-29 Thread asgallant
Do you want a link opened when someone clicks a data point, or do you want a link added to the popup? If you want a link opened on click, after you call draw() on your chart object, add an event listener for the select event and use js to direct your navigation from there: // assuming you

[visualization-api] Re: Link on interactive google Chart

2011-07-28 Thread eric akle
hi Biran Please can you give me an example that will be helpful Thank you On Jul 28, 3:02 pm, Roni Biran roni.bi...@gmail.com wrote: It is possible. All you have to do is add a listener to the 'select' event On Jul 29, 2011, at 12:53 AM, eric akle aklebr...@gmail.com wrote: How can i put a