How to make two independent y-axes have the same minimum value?

12 views
Skip to first unread message

Eric Diaz

unread,
Aug 18, 2016, 2:23:00 PM8/18/16
to Google Visualization API
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

Daniel LaLiberte

unread,
Aug 18, 2016, 2:45:58 PM8/18/16
to Google Visualization API
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.

--
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+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@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.



--
Reply all
Reply to author
Forward
0 new messages