Tom,
  This is a bug I've reported here in the past - the problem (to me)
seems to be that with a *constant* value column, the difference in the
high and low is zero, and therefore the scaling "denominator" is going
to be zero, if not properly considered in the limit case.
  Ideally, they'd have a flat line in the graph, but it's not shown at
all.
  I can't tell you what to do in this case, because I too, am wishing
this were possible. For now, it's not. Maybe they'll see this and
count it as another vote for a fix to this problem. But for now,
constant lines and "allmaximize" are not going to work together.
  Sorry for the bad news.

Bob

On Aug 21, 9:42 am, Tom <[email protected]> wrote:
> Bob,
> Thanks! That's getting at what I'm looking for, but I have multiple
> lines that must be displayed on the same scale. If I use
> 'allmaximize', the third line ("Limit") in the example below does not
> display.
> Tom
>
> <html>
>   <head>
>     <script type='text/javascript' src='http://www.google.com/jsapi'></
> script>
>     <script type='text/javascript'>
>       google.load('visualization', '1', {'packages':
> ['annotatedtimeline']});
>       google.setOnLoadCallback(drawChart);
>       function drawChart() {
>         var data = new google.visualization.DataTable();
>         data.addColumn('date', 'Date');
>         data.addColumn('number', 'Sold Pencils');
>         data.addColumn('number', 'Sold Pens');
>         data.addColumn('number', 'Limit');
>         data.addRows([
>           [new Date(2008, 1 ,1), 72, 71, 84],
>           [new Date(2008, 1 ,2), 73, 74, 84],
>           [new Date(2008, 1 ,3), 73, 72, 84],
>           [new Date(2008, 1 ,4), 71, 72, 84],
>           [new Date(2008, 1 ,5), 72, 71, 84],
>           [new Date(2008, 1 ,6), 73, 72, 84]
>         ]);
>
>         var chart = new google.visualization.AnnotatedTimeLine
> (document.getElementById('chart_div'));
>         chart.draw(data, {scaleType: 'allmaximize'});
>       }
>     </script>
>   </head>
>
>   <body>
>     <div id='chart_div' style='width: 800px; height: 300px;'></div>
>   </body>
> </html>
>
> On Aug 21, 7:23 am, Bob <[email protected]> wrote:
>
>
>
> > Tom,
> >   If you set the value of 'scaleType' to 'maximize' then you'll get
> > the data plotted to the full vertical range. There is nothing I've
> > seen that allows you to set a minimum value as you'd also need to set
> > the maximum in order to properly scale the plot.
> >   Try the "scaleType: 'maximize';" in the options for the graph and
> > see what you think.
>
> > Bob
>
> > On Aug 20, 6:26 am, Tom <[email protected]> wrote:
>
> > > If you have a timeline with a small range of values (say, 500 to 510),
> > > is there a way to set the minimum Y value to 400? I've tried {min:
> > > 400}, but ATL seems to always want to include 0 on the Y axis.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to