You should use viewWindow min and max to limit the range of the axis.
vAxis: {
viewWindow: { min: 0, max: 150}
}
The minValue and maxValue options actually only ensure those values are
included, and don't restrict the axis.
The reason the chart is expanding to -50 by default is that the rounded
curve dips below 0. It probably should either not dip below 0, or allow a
small dip without expanding the axis.
On Sun, Jul 24, 2016 at 4:13 AM, jc <[email protected]> wrote:
> Hi,
> What is the best way to indicate min and max value for vertical axis in
> a line chart ?
>
> In the attached doc, gChart generate vaxis from -50 to 150 does'nt make
> sense.
> thanks
>
> --
> 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
> https://groups.google.com/group/google-visualization-api.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-visualization-api/c6f68cf2-b66f-4efb-b1da-8714ed3f28fc%40googlegroups.com
> <https://groups.google.com/d/msgid/google-visualization-api/c6f68cf2-b66f-4efb-b1da-8714ed3f28fc%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
[email protected] <[email protected]> 5CC, Cambridge 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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJMv6Z%3DGSKadp_tjh20W03V4LeP3kcTbVp5GYPuptTAV_w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.