On 4 July, 12:06, Dominic <[email protected]> wrote: > Morning, > > I've 2 visualisations on a page, a Bar Chart and a Table, and I'd like > for the table row to be highlighted upon a bar being clicked. Both > visualisation are global and drawn from the same data table so I > tried: > > googleTable.setSelection(googleBar.getSelection()); > > I know that the event is being fired as both the table and bar chart > are firing events on another visualisation, it's just that they're not > working between each other, I'd also like the bar chart to be updated > when a table row is clicked but again, > > googleBar.setSelection(googleTable.getSelection()); > > in the table event handler code doesn't do anything. > > Any ideas would be greatly appreciated, > > Cheers, > > Dom
Found it! Sorry for wasting your time: according to this: <http://code.google.com/apis/visualization/documentation/ reference.html#vissetselection> I was having problems with the array I was passing! It works with: googleTable.setSelection([{row:item.row, column:null}]); Now to make it work the other way around ;-) Cheers for your time, 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.
