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]> 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]. > 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/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] <[email protected]> 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/CAOtcSJNYQDZDRp7HzA2tL0er7GFoXWrcgggeRO-v2X-OtuKoFA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
