Thanks Riccardo, that worked well. Still not sure about positioning, as 
ideally I would like the stringfilters to lineup with the columns in the 
table visualisation. Without the knowing the width of the columns in the 
visualisation you cannot make them lineup. Thats why some sort of 
integration of the visualisation and dashboard would be nice.

If you also want to autogenerate string filters for every column in the 
table this is what I used:

var qcData = response.getDataTable(); 
// Create the dashboard. 
var dashboard = new 
google.visualization.Dashboard(document.getElementById('dashboard'));
var stringFilters = []; 
for (var i = 0; i < qcData.getNumberOfColumns(); i++) {
   stringFilters.push(new google.visualization.ControlWrapper({ 
       controlType: 'StringFilter',
       'containerId': 'filter_div'+i, 
       'options': {
           'filterColumnIndex': i,
           'ui': {'label': ""}
       }
       })) 
       var divTag = document.createElement("div");
       divTag.id = "filter_div"+i;
       document.body.appendChild(divTag);
 }

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-visualization-api/-/P0zGl51iPXYJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to