I ended up getting the behavior I wanted with the following code.
Please let me know if there's something wrong/evil/foolish here:

    var selectedRows = new Array();
    function myTableClickHandler(){
        var selection = tableviz.getSelection();
        for (var idx in selection){
            var item = selection[idx];
            if (item) {
                i = selectedRows.indexOf(item.row);
                if (i == -1){
                    selectedRows.push(item.row);
                    tableView.setProperty(item.row,
0,'style','background-color:#d6e9f8;');
                    tableView.setProperty(item.row,
1,'style','background-color:#d6e9f8;');
                } else {
                    selectedRows.splice(i,1);
                    tableView.setProperty(item.row,0,'style',null);
                    tableView.setProperty(item.row,1,'style',null);
                }
            }
        }
        tableViz.setSelection(null);
        tableViz.draw(tableView, tableOptions);
        pieView.setRows(selectedRows);
        pieViz.draw(pieView);
    }

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