I believe that you are not really modifying the data source url of the same query (thee is no way to do it...), but just overriding the var you use with a new Query object (and with a new data source url). Yet - the old query is still alive (detached from your var, but still).
What you have to do is something like this: var q = new google.visualization.Query(url1); q.send(callback); ... // and before you want to set a new query: q.abort(); // reset the refresh timer q = new google.visualization.Query(url2); q.send(callback); So you can see how the abort function is used to remove the auto refresh. VizGuy On Fri, Dec 5, 2008 at 9:39 PM, jalbrecht <[EMAIL PROTECTED]> wrote: > > Perhaps I'm using the wrong technique, but I would like to have one > area chart with different date ranges. > > What I do is call the same query.send function but change the URL of > the data source each time. I then clear the div before I draw the > chart. Everything looks and works fine expect for the fact that I have > the setRereshInterval set, and even thought the div was cleared and a > new chart made, at the set interval the old chart will redisplay. > > So what are my options? > > I suppose I could create a div for each range and hide/show them one > by one. Seems like a bloated solution. > > Is there a way to kill the refresh before I create the new chart? > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
