Hi i am stuck on pass URL parameter values into string filter input in Google visualization.i want to pass url parameter when report is ready instead of user type on it and filter data from table.
eg :http//mypage?id=1234
var fteFilter = new google.visualization.ControlWrapper({
'controlType': 'StringFilter',
'containerId': 'control_div8',
'options': {
'filterColumnLabel': 'FTE Id' ,
'matchType':'any',
'ui': {
'labelStacking': 'vertical',
'label': 'FTE Id :'
}
}
});
To get the query parameter use the code (or other that you prefer):
https://css-tricks.com/snippets/javascript/get-url-variables/
Add to your filter the state value.
Use selectedValues array to CategoryFilter.