Hi Neil,
You can constrain the lower end of the vertical axis like so:
options = {
...
vAxis: { viewWindow: { min: 0 } }
}
Since we can see 20 gridlines on your vertical axis, I suspect you have
specified "count: 20", and if so, the chart tries its best to show 20
gridlines, with a bit of margin around the lowest and highest values in
your data. You might be better off specifying "count: -1" so it will use a
dynamically computed number of gridlines.
Another option, if you want specific gridline values, is to use the 'ticks'
option to explicitly provide the array of values you want.
dan
On Thu, May 15, 2014 at 2:02 AM, Neil Camara <[email protected]> wrote:
> Hi folks,
>
> I'm not sure why it's showing negative axis even if I don't have any
> negative values that I'm putting. How do I force it so that it's always at
> zero?
>
> Thanks,
>
> Neil
>
> --
> 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
> http://groups.google.com/group/google-visualization-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 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 http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.