Ben,

Refreshing the graph by calling chart.draw(data, options) is not
necessarily an expensive operation, depending on the amount of data you are
drawing.  An hour of 1-second data is probably not going to be too much of
a burden.  How about trying it to see how well it works.

If you just want to show the last hour of data, then as each new value
comes in (to the browser, I presume), drop the oldest if it is older than
an hour.


On Sun, Feb 16, 2014 at 11:13 AM, Ben Andrews
<[email protected]>wrote:

> Hi,
>
> I have data being fed from a temperature sensor into my code that
> refreshes every second. What I would like to do is store the data every
> time it refreshes and then plot this data on a line graph that updates
> automatically. Ideally I would just like to plot an extra point every time
> it comes along so I don't have to refresh the entire graph every second.
> The data need only be stored for an hour or so.
>
> I have managed to get a Gauge to update in real time to show me the
> temperature but am a bit stuck as to how to do the line graph.
>
> Any help would be much appreciated.
>
> Thanks,
> Ben Andrews
>
> --
> 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.
>



-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>  -
978-394-1058
[email protected] <[email protected]>   5CC, Cambridge MA
[email protected] <[email protected]> 9 Juniper Ridge
Road, Acton MA

-- 
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