When using Dashboards, you cannot use the refreshInterval to requery your data source. You have to use the Query<https://developers.google.com/chart/interactive/docs/reference#queryobjects>class to create a query and the setTimeout or setInterval js functions to resend the query. You fetch the DataTable from the data returned by the query and pass it to the Dashboard object when you call the Dashboard's #draw method. The Dashboard handles distributing data to all of the controls and charts bound in the Dashboard.
On Sunday, November 18, 2012 8:58:30 PM UTC-5, David Vine wrote: > > Hi, > > I'm trying to use ChartWrapper objects in a dahsboard with a remote data > source and have the data refresh using refreshInterval. > > In the docs it says: > Do not set its dataTable, query, dataSourceUrl and refreshInterval attributes > explicitly. > c.f > https://developers.google.com/chart/interactive/docs/gallery/controls#dashboardobject > > My question is how do I set these if not explicitly? > > Thanks, > David > -- 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/-/evve9xWSpn4J. 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.
