http://jsfiddle.net/shivani_1001/wy1wy6qh/1/  here is the sample fiddle
where is not loaded on button click.

On Sat, Sep 20, 2014 at 5:18 AM, Andrew Gallant <[email protected]> wrote:

> You need to call filter.setDataTable in the handler:
>
> document.getElementbyId('btnGetData').onclick = function()
> {
>     data = GetData();
>     filter.setDataTable(data);
>     filter.draw();
> }
>
> On Friday, September 19, 2014 12:16:23 PM UTC-4, Shivani Kanakhara wrote:
>>
>> 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 a topic in the
> Google Groups "Google Visualization API" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-visualization-api/sAIVTOkML6U/unsubscribe
> .
> To unsubscribe from this group and all its topics, 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.
>

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

Reply via email to