ah the 

getChartLayoutInterface() function is what i needed, i kept looking for it 
but couldn't find it

and just to make sure is my approach of calling the DRAW function every 
time new data comes in is correct for real time updates, right? there is no 
way to just update the chart you just have to redraw the whole thing to 
update it seems like.
also, i have noticed that the plot takes up a lot of RAM as the number of 
samples grow and i have to use averaging to reduce the number of samples 
displayed to preserve memory. this is also a problem for me because i want 
to be able to display data over a long time but i am limited by the plot's 
ram usage. now on Safari it all works fine without taking up much memory 
but on chrome it grows very fast! i know that chrom uses a seperate process 
per tab but i am not sure how to make it work like safari so that i can 
display a huge sample without memory burden.

Thanks,
Farhad

On Monday, May 9, 2016 at 9:04:55 PM UTC-6, Daniel LaLiberte wrote:
>
> You will generally want to use the viewWindow min and max options to set 
> the zoom and pan yourself, and after the user changes the zoom and pan, 
> you'll have to grab the current values using getChartLayoutInterface() and 
> associated methods.  
>
> Sorry, this is not going to be very convenient to do - we should provide a 
> few more conveniences to make this easier.
>
> On Mon, May 9, 2016 at 6:16 PM, fm <[email protected] <javascript:>> 
> wrote:
>
>> I have an IoT project and i have live data stream at the rate of 1 
>> sample/sec.
>> I am using draw(data,option) once a second and am redrawing the entire 
>> thing to display real time data
>> i wan the user to be able to zoom and pan and for my code to maintain the 
>> current view (based on user zoom and pan) whiel i update the chart
>> this is not happening right now because as soon as i call draw everything 
>> gets reset
>> How do I fix this please?
>>
>> -- 
>> 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] 
>> <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at 
>> https://groups.google.com/group/google-visualization-api.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-visualization-api/6a52b617-c3b9-4cd1-ba08-80eca8a9caaa%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/google-visualization-api/6a52b617-c3b9-4cd1-ba08-80eca8a9caaa%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
> [email protected] <javascript:>   5CC, Cambridge 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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/cdc49bc0-4077-4e3c-a6f4-656e1c40a40d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to