Thanks, you solved my problem!

If someone else is interested:

I added this function:

google.visualization.events.addListener(chart, 'ready', onReady);

 function onReady() {
    body = document.getElementById('visualization').getElementsByTagName(
'iframe')[0].contentDocument.getElementsByTagName('body')[0];
    body.addEventListener('contextmenu', function (){alert('click')}, true)
;
  }

I had some trouble to make this work with GWT, but the principle is the
same.

2011/12/27 asgallant <[email protected]>

> I use jQuery to help with that:
>
> $('#chart_div').find('iframe').contents().find('body').click(function () {
>     alert('Click event fired');
> });
>
> --
> 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/-/Bm1wf0L2nEEJ.
>
> 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.
>



-- 
Renato Beserra Sousa

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
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