You can listen on annotated time line 'rangechange' event and then set the min and max value and redraw the chart (I am not sure if you can avoid some flickering). There is no automatic way to adjust the min/max setting for the chart
ChartMan On Mon, Aug 16, 2010 at 10:56 AM, HKA <[email protected]> wrote: > Hi! > > It doesn't really suit my needs because the 'min' option only sets the > minumum value of the y-axis doesn't it? In my case, I need to adjust > the data automatically according to which time period is shown. > > Say that I have the following series of stock prices > Day 1: 100 > Day 2: 150 > Day 3: 75 > Day 4: 25 > > If I was to plot this series from day 1 to day 4 i want to plot the > values 0%, +50%, -25%, -75% > If I was to plot this series from day 2 to day 4 i want to plot the > values 0%, -50%, -83.3% > If I was to plot this series from day 3 to day 4 i want to plot the > values 0%, -66.6% > > In other words, the point of reference (0%) should always be the day > from when the plot is started. > > Can I achieve this in some way, by e.g. using events? > > > On 15 Aug, 12:53, ChartMan <[email protected]> wrote: > > The options for the annotatedtimeline are herehttp:// > code.google.com/apis/visualization/documentation/gallery/annot... > > <http://code.google.com/apis/visualization/documentation/gallery/annot.. > .>One > > of them is 'min'. > > > > Let me know if this suits your needs, > > Hillel > > -- > 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.
