Hi,

I am new to any of this area and trying to get a gauge chart i.e., updated 
dynamically with latest entry on my database. I have a php script file 
which can return the latest single plain float value like "30.25". I have a 
html file with gauge chart code & want to get thechart updated with that 
value every 5 sec but struck at following.

The working code with random value is like this

*setInterval(function() {*
*        var flow = 40.65 + Math.round(60 * Math.random());*
*        data.setValue(0, 1, flow);*
*        chart.draw(data, options);*
*    }, 5000);*

 But when i try to get the variable from php file its not working like 
following.

*setInterval(function() {*
*        var flow = $.ajax({url: 'Gauge.php', dataType: 'text', async: 
false}).responseText;*
*        data.setValue(0, 1, flow);*
*        chart.draw(data, options);*
*    }, 5000);*

Please help me to correct the code. Thank you!

-- 
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/groups/opt_out.

Reply via email to