Tim,

Your thinking about this is just fine.  The explorer mode changes the
viewWindow of the chart's axes, but these changes are not reflected in any
internal state of the chart. Consequently, when you draw the chart again,
the viewWindow changes are lost, and reset to the default, or whatever you
specify in the options.  This is arguably the correct thing to do.

But there is also no way to find out (like with an event) that the explorer
mode has been used.  You can, however, find out more indirectly where the
viewWindow has ended up as, using the getChartLayoutInterface method and
related methods:


https://developers.google.com/chart/interactive/docs/gallery/linechart#Methods


Unfortunately, this is not as easy as it ideally should be, so we need to
fix that.  Hope this helps.


On Sat, Nov 22, 2014 at 10:15 PM, Tim Havens <[email protected]> wrote:

> I'm probably thinking about this incorrectly.  I have a LineChart which
> has live data added to it.
>
> I have enabled zoom/pan in options as:
>
>             explorer: {
>                maxZoomOut:2,
>                keepInBounds: true
>             }
>
> When I zoom the chart it zooms just fine until my next add data interval
> (about 2 seconds).  When data is added the chart returns to it's
> non-zoomed/panned original view.
>
> When I would like to be able to do is retain the zoom/pan even with new
> data being added if at all possible.
>
> If that's not possibly I would need access to something that tells my code
> that the chart is currently zoomed in, and to continue to add data to the
> dataTable but not to do a chart.draw() until the I've reset the zoom.
>
> I've only just really started working this GC API, so I'm probably missing
> something everybody else already knows.  I apologize in advance if that's
> the case, but would sure appreciate some insight if anyone has anything
> constructive.
>
> Thank you for your time.
>
> Tim
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Chart 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-chart-api.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
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 Chart 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-chart-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to