I am using a category filter where i pass data using ajax.
Now i want to change the data passed to the filter on button click.
I am doing something like this but it is not working:
var data;
document.getElementbyId('btnGetData').onclick = function()
{
data = GetData()
filter.draw();
}
var filter = new google.visulization.ControlWrapper({
'controlType': 'CategoryFilter',
'dataTable':data,
...
...
});
i guess there is something related to filter.getcontrol() in the ready
event..
but not exactly sure.
How should exactly the code be?
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.