Any example of stacked column with dual y axes?

29 views
Skip to first unread message

Keny

unread,
Oct 10, 2017, 5:56:48 AM10/10/17
to Google Visualization API

From the link https://developers.google.com/chart/interactive/docs/gallery/combochart,
it does have 2 different axes?Any ideas or references?
Thanks in advance.

Daniel LaLiberte

unread,
Oct 10, 2017, 11:02:36 AM10/10/17
to Google Visualization API
In general, to get 2 vertical axes, just add the targetAxisIndex option to the series that should be associated with a  different axis.  E.g. 

  series: {5: {type: 'line', targetAxisIndex: 1}}

--
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/5e239891-ab8c-4ecb-a820-f3c89cfa7958%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Keny

unread,
Oct 10, 2017, 9:42:11 PM10/10/17
to Google Visualization API
Thank your for your reply,
may i ask what does 5 here mean?

Daniel LaLiberte於 2017年10月10日星期二 UTC+8下午11時02分36秒寫道:
In general, to get 2 vertical axes, just add the targetAxisIndex option to the series that should be associated with a  different axis.  E.g. 

  series: {5: {type: 'line', targetAxisIndex: 1}}
On Tue, Oct 10, 2017 at 5:56 AM, Keny <keny4...@gmail.com> wrote:

From the link https://developers.google.com/chart/interactive/docs/gallery/combochart,
it does have 2 different axes?Any ideas or references?
Thanks in advance.

--
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-visua...@googlegroups.com.



--

Daniel LaLiberte

unread,
Oct 10, 2017, 10:47:00 PM10/10/17
to Google Visualization API
5 is the series index number.  See the documentation under the 'series' option on the page you linked to.

On Tue, Oct 10, 2017 at 9:42 PM, Keny <keny4...@gmail.com> wrote:
Thank your for your reply,
may i ask what does 5 here mean?

Daniel LaLiberte於 2017年10月10日星期二 UTC+8下午11時02分36秒寫道:
In general, to get 2 vertical axes, just add the targetAxisIndex option to the series that should be associated with a  different axis.  E.g. 

  series: {5: {type: 'line', targetAxisIndex: 1}}
On Tue, Oct 10, 2017 at 5:56 AM, Keny <keny4...@gmail.com> wrote:

From the link https://developers.google.com/chart/interactive/docs/gallery/combochart,
it does have 2 different axes?Any ideas or references?
Thanks in advance.

--
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+unsubscr...@googlegroups.com.



--

--
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.

For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages