DanBo
unread,Jun 15, 2009, 2:50:35 PM6/15/09Sign 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
Is there a better/faster method for resetting filter on a dataview so
that you don't have to set the rows back to the full extent of the
orignal array?
// Code Start
var view = new google.visualization.DataView(data);
view.setRows(view.getFilteredRows([{column: 3, minValue: 0}, {column:
4, minValue: 0}]));
var table = new google.visualization.Table(document.getElementById
('table'));
table.draw(view1);
// reset view
view.setRows(1, 47); // <-- Is this the only method?
view.setRows(view.getFilteredRows([{column: 3, minValue: 10}, {column:
4, minValue: 10}]));
var table1 = new google.visualization.Table(document.getElementById
('table1'));
table1.draw(view);
// Code End
Thanks,
Dan