You can do this. Are you using the Visualization Query class to fetch your data, or are you using some other method? If you are using the Queries, you can use the setRefreshInterval method to set the number of seconds between refreshing the data. If you use another method (like fetching data from your server using AJAX), you can use the basic javascript setTimeout function to set the refresh interval, or (better, in my humble opinion) use something like jQuery's queue and delay functions to handle the refresh and timing.
On Wednesday, March 28, 2012 9:07:54 AM UTC-4, shub wrote: > > Hi, > > I am working on a line chart which needs to fetch the data from database , > and as I am refreshing the chart div after every "n seconds" , I want the > chart to be drawn with new data values. > > Is this possible.... ?? > > Please reply, if anyone knows how to resolve this issue.... ? > > > Thanks in advance. > > > > > > -- 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/-/cr0yD8_6OBQJ. 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.
