Wow I can't Thank You enough! This is going to be extremely useful to my team and I.
~ Mel On Thursday, May 2, 2013 7:34:51 PM UTC-7, asgallant wrote: > > I posted an answer to this in the other thread: > https://groups.google.com/d/msg/google-visualization-api/o_0glePcjFs/OAgUcRlc6KEJ > > On Thursday, May 2, 2013 5:07:10 PM UTC-4, Melissa wrote: >> >> Hey Guys, >> >> Could someone help me sort out whether it is possible to have control >> below use a data source (e.g. >> https://spreadsheets.google.com/a/trialpay.com/pub?key=rh_6pF1K_XsruwVr_doofvw) >> instead? >> >> Thanks in advance! :) >> >> function drawVisualization() { >> // Prepare the data. >> var data = google.visualization.arrayToDataTable([ >> ['Name', 'Age'], >> ['Michael' , 12], >> ['Elisa', 20], >> ['Robert', 7], >> ['John', 54], >> ['Jessica', 22], >> ['Aaron', 3], >> ['Margareth', 42], >> ['Miranda', 33] >> ]); >> >> // Define a StringFilter control for the 'Name' column >> var stringFilter = new google.visualization.ControlWrapper({ >> 'controlType': 'StringFilter', >> 'containerId': 'control1', >> 'options': { >> 'filterColumnLabel': 'Name' >> } >> }); >> >> // Define a table visualization >> var table = new google.visualization.ChartWrapper({ >> 'chartType': 'Table', >> 'containerId': 'chart1', >> 'options': {'height': '13em', 'width': '20em'} >> }); >> >> // Create the dashboard. >> var dashboard = new google.visualization.Dashboard(document. >> getElementById('dashboard')). >> // Configure the string filter to affect the table contents >> bind(stringFilter, table). >> // Draw the dashboard >> draw(data); >> } >> > -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
