There is no automatic support for this like the one used for the finance chart. However the chart does dispatch a 'rangechange' event every time the range changes. I guess you can listen to these events and update the data accordingly then draw the chart again (not as slick but it might solve your problem).
http://code.google.com/apis/visualization/documentation/gallery/annotatedtimeline.html#Events <http://code.google.com/apis/visualization/documentation/gallery/annotatedtimeline.html#Events> ChartMan On Tue, Jan 25, 2011 at 7:00 PM, grao <[email protected]> wrote: > Hello, > > I am new to the Google Visualization API, so please bear with me! I > have javascript code which generates a Google interactive chart > (annotated line chart, similar to, but not as complex as, the google > finance chart). My data spans a wide range from 0 or even negative > numbers up to 500,000+. I am plotting only one line per chart. > > When I use the range selector below the chart, the original full scale > is still used, so even if the zoomed in range has a range on the y- > axis of 50-100, it appears as a flat line since it is dwarfed by the > large scale of the entire data set. > > How can I make y-axis autoscale to the data range currently visible in > the range selector? (The Google Finance chart does this). > > Thanks, help much appreciated! > > -- > You received this message because you are subscribed to the Google Groups > "Google Visualization API" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-visualization-api%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-visualization-api?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Visualization 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-visualization-api?hl=en.
