Discussion:
[visualization-api] How to make two independent y-axes have the same minimum value?
Eric Diaz
2016-08-18 18:23:00 UTC
Permalink
Hi,

I just implemented a line chart with two independent y-axes.

Eventhough, I set the

```
options.vAxes = [
{"minValue": 0},
{"minValue": 0}
];
```

to have the same minimum value, the actual minimum value for each y-axis is
different.

I assume it has something to do with the range of the y-data values.

If anyone knows how to "truly" make two independent y-axes have the same
minimum value, on the chart itself, I would really appreciate some help.

Thanks,

Eric
--
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 google-visualization-api+***@googlegroups.com.
To post to this group, send email to google-visualization-***@googlegroups.com.
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/52e72d12-a2d9-4c33-994c-80355950eb14%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
'Daniel LaLiberte' via Google Visualization API
2016-08-18 18:45:51 UTC
Permalink
Did you try viewWindow: { min: 0 } ?
That constrains the lowest visible value on the axis, whereas minValue
merely ensures the value is visible in the chart.
Post by Eric Diaz
Hi,
I just implemented a line chart with two independent y-axes.
Eventhough, I set the
```
options.vAxes = [
{"minValue": 0},
{"minValue": 0}
];
```
to have the same minimum value, the actual minimum value for each y-axis
is different.
I assume it has something to do with the range of the y-data values.
If anyone knows how to "truly" make two independent y-axes have the same
minimum value, on the chart itself, I would really appreciate some help.
Thanks,
Eric
--
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
googlegroups.com.
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/52e72d12-a2d9-4c33-994c-
80355950eb14%40googlegroups.com
<https://groups.google.com/d/msgid/google-visualization-api/52e72d12-a2d9-4c33-994c-80355950eb14%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>
***@Google.com <***@google.com> 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 google-visualization-api+***@googlegroups.com.
To post to this group, send email to google-visualization-***@googlegroups.com.
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/CAOtcSJOSL-k%3DRX1F8J_OX7JdhjbnX0Bu_JWANdAsP3FzSK0gOg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...