You can safely use getFilteredRows() and just call draw() again on the dashboard as a whole whenever the set of dates to filter upon changes.
Consider this example: http://jsfiddle.net/hSBAF/ It has a dashboard and a button (to mimic your date filter) that filters the dashboard based on a given date range. When the button is pressed, a dataview is created using getFilteredRows() and then the dashboard is redrawn with such view. Everything should remain consistent. Try, for example the following: - enter 'birth' in the text input box -> the dashboard only show birthdays - press the button -> the dashboard now only shows birthdays ( respecting the text you previously entered) that happen in the future (respecting the date filter). -- R. On 8 September 2011 15:08, emstone <[email protected]> wrote: > I have a date column in my table. I'm trying to make a form that > triggers and event to filter the dashboard already present on the > page. This is a workaround to the fact that there is no control type > that can handle dates. > > Two questions for any wise soul... > > 1. How can I handle the filter given that the dates used for filtering > are stored in variables as javascript dates? I prefer not to requery > the data source for obvious reasons but I'm not sure that the > "getFilteredRows" can compare the date column with a javascript date > (that has the date/time). > > 2. What is the most efficient way to redraw the charts? > > > Thanks! > > -- > You received this message because you are subscribed to the Google Groups > "Google Visualization API" group. > 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. > > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. 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.
