Use a google.visualization.Query and set its refreshInterval as you like http://code.google.com/apis/visualization/documentation/queries.html#moreinfo
On Tue, Feb 2, 2010 at 5:17 PM, Oliver Spencer <[email protected]>wrote: > I'm also interested in doing this. In particular, I'd also like to > update the gauge visualisation every 10 seconds without having to > reload the entire page. Ideally, I'd like to avoid using the gadget > version, and rather stick to the Javascript implementation. > > The example Google provides on the visualisations page uses the > following code to update the gauge value every few seconds with some > random numbers: > setInterval(function() { > data.setValue(0, 1, 40 + Math.round(60 * Math.random())); > chart.draw(data, options); > }, 13000); > > Ideally, if we could query a MySQL database at this point and update > accordingly, this would be perfect. > > Does anyone have any examples of code, rather than > http://www.gvstreamer.com > which has an associated cost. > > Thanks for any help. > > Oliver. > > On Feb 1, 1:51 pm, paulmo <[email protected]> wrote: > > Thanks but is there a way to use DataTable with MySQL data without > > using a 3rd party app? > > > > On Jan 31, 1:46 am, Tzvika <[email protected]> wrote: > > > > > > > > > > > > > Tryhttp://www.gvstreamer.com > > > > > -Tzvika > > > > > On Jan 27, 11:08 pm, paulmo <[email protected]> wrote: > > > > > > Please direct me to info/docs/examples on how to use DataTable or > > > > other Google visualizations using data from MySQL query. > > -- > 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]<google-visualization-api%[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.
