There are multiple ways to do this. If you're using the google.visualization.Query, there's a refreshInterval option. You can find the documentation for the Query here: https://developers.google.com/chart/interactive/docs/reference#Query
Alternatively, if you're not using the Query, you could use setInterval to refetch your data and redraw the chart. On Sat, Mar 21, 2015 at 3:12 PM saqib shabbir <[email protected]> wrote: > Thanks for that Sergey! > > I have removed all the chart.draw except one and it now display just one > graph for each variable. > > one issue i am having now is how to make the graph update around every 5 > seconds, so it should get new data from sparkfun data stream and update > every 5 seconds? > > would be greatful if I can be pointed in the right direction please! > >> >>> -- > 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. > For more options, visit https://groups.google.com/d/optout. > -- 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. For more options, visit https://groups.google.com/d/optout.
