Can someone tell me why dynamic updates to charts takes so long? ... I
have a very simple spreadsheet (3 columns ~30 rows) and a simple pie-
chart that is tied to the data. If I use javascript methods of
rendering the chart in my web page, it takes roughly 5 minutes
(sometimes more, sometimes less) to update. The chart is regularly
polling for updates, but the only result returned is a "not_modified"
error... suggesting that the data wasn't modified.
<script type="text/javascript" src="//ajax.googleapis.com/ajax/static/
modules/gviz/1.0/chart.js"> {"dataSourceUrl":"//docs.google.com/
spreadsheet/tq?key=<MYDOCKEYGOESHERE>","options":{"vAxes":
[{"viewWindowMode":"pretty","viewWindow":{}},
{"viewWindowMode":"pretty","viewWindow":{}}],"title":"Post
2","backgroundColor":"#FFFFFF","legend":"right","colors":
["#3366CC","#DC3912","#FF9900","#109618","#990099","#0099C6","#DD4477","#66AA00","#B82E2E","#316395","#994499","#22AA99","#AAAA11","#6633CC","#E67300","#8B0707","#651067","#329262","#5574A6","#3B3EAC","#B77322","#16D620","#B91383","#F4359E","#9C5935","#A9C413","#2A778D","#668D1C","#BEA413","#0C5922","#743411"],"is3D":false,"hAxis":
{"maxAlternations":1},"hasLabelsColumn":true,"width":500,"height":
400},"state":{},"chartType":"PieChart","chartName":"Chart
1","refreshInterval":3} </script>
If I embed the chart as an image, and refresh it every few seconds...
updates are near-realtime.
<img src="https://docs.google.com/spreadsheet/oimg?
key=<MYDOCKEYGOESHERE>&oid=<X>" />
Why is that? Why can't I get dynamic updates in a near-realtime
fashion? I don't mind a delay... but 5 minutes is far too long. And
why is there a "refreshInterval" if the javascript chart is going to
be "lied" to about updates? Am I doing something wrong?
--
You received this message because you are subscribed to the Google Groups
"Google Chart 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-chart-api?hl=en.