Refresh doesn't seem to do anything for motion chart.
Here is my code
<html>
<head>
<script type="text/javascript"
src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load('visualization', '1', {'packages':['motionchart']});
google.setOnLoadCallback(initialize);
function initialize() {
var query = new google.visualization.Query(
'http://spreadsheets.google.com/ccc?key=rvnro3rePJbLydMYqoQkVpA&hl=en');
query.setRefreshInterval(10);
query.send(draw);
}
function draw(response) {
if (response.isError()) {
alert('Error in query')
}
var ticketsData = response.getDataTable();
var chart = new
google.visualization.MotionChart(document.getElementById('chart_div'));
chart.draw(ticketsData, {width: 450, height:450});
}
</script>
</head>
<div id="chart_div" style="align: center; width: 700px; height: 300px;"></div>
When I modify the spreadshteet I get no change in motion chart. If I
reload the motion chart I see the new data.
I'm not even clear what should happen in a Motion Chart with the new
data. Where in the time line would the data be displayed?
Ideally I would want the latest points shown.
I would wildly guess that if refresh worked it might just put the time
back to the beginning but the chart would contain a longer time line.
Best Wishes
Kyle Hailey
http://sites.google.com/site/youvisualize/
http://oraclemonitor.com
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---