Hi there,
I've a google.visualization.BarChart and a google.visualization.Table
on the same page, both are global variables (window.googleBar and
window.googleTable respectively). I've set up the BarChart so that
when a bar is clicked this happens:
var item = googleTable.getSelection()[0];
googleBar.setSelection([{row:item.row, column:null}]);
This means that when the bar is clicked the corresponding row in the
table is highlighted. I'm after something that does the same but the
other way around... such that when a table row is clicked a bar is
highlighted. I tried this:
var item = googleBar.getSelection()[0];
googleTable.setSelection([{row:item.row, column:null}]);
but nothing happens :-(
Anyone any ideas what I'm doing wrong?
Cheers,
Dom
--
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.