You can implement your own version of this:

function eventHandler (chart) {
    // do stuff with chart
}

google.visualization.events.addListener(myChart, 'select', function () {
    selectHandler(myChart);
});

or for charts that are a members of an array or object:

google.visualization.events.addListener(myCharts[i], 'select', (function 
(x) {
    return function () {
        selectHandler(myCharts[x]);
    }
})(i));

On Friday, April 26, 2013 9:35:13 AM UTC-4, Rob Grotenbreg wrote:
>
> ok, i solved it apparently with some _self variable in the object and 
> handler, but it still would be nice to get a chart object passed to the 
> handler i think

-- 
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