Nick
unread,Feb 2, 2012, 8:04:32 PM2/2/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Visualization API
Advice much appreciated...
I have a dataTable from which I draw() a Treemap. From this dataTable
I also create a dataView by using getFilteredRows(), using those
filtered rows to draw a Table.
(Reasoning: I have a treemap of countries and cities. If I select
'UK', the treemap shows me UK cities. A listener hears this thanks to
getSelection(), and redraws the table to show only those rows where
parent matches the value 'UK'. In short, the state the treemap and the
table always match).
I see unexpected behaviours with a listener on the Treemap.
table.setSelection(treemap.getSelection());
...causes the wrong table row to be selected.
I'm guessing this is because the rowIndexes from the dataTable and
dataView are different.
Any ideas for a workaround, or something I've missed?