javascript - Google Chart Dispose of Control -


i wondering if there way dispose of control in google charts? think solve problem.

so if have control table defined so...

stringfilter = new google.visualization.controlwrapper({                 'controltype': 'categoryfilter',                 'containerid': 'control1',                 'options': {                     'filtercolumnlabel': 'columnnametofilteron'                 }             }); 

if later on have checkboxes show/hide columns. using view.setcolumns(state) state array of columns display. issue after hiding column way end 2 errors , column not becoming hidden.

one or more participants failed draw() invalid column label: issue title 

view.setcolumns(state) works fine column without controltype defined it.