[visualization-api] Can bar chart and line chart be combined together?

49 views
Skip to first unread message

Tong Sun

unread,
Sep 4, 2015, 6:10:20 PM9/4/15
to google-visua...@googlegroups.com
Thanks,

Can I use Bar Charts instead in ComboChart? -- I haven't figured out a way to turn the column chart into Bar Chart. 

Thanks


On Sat, Aug 1, 2015 at 3:16 AM, 'Jon Orwant' via Google Visualization API <google-visua...@googlegroups.com> wrote:

On Sat, Aug 1, 2015 at 4:41 AM, Tong Sun <sunto...@gmail.com> wrote:
Hi, 

Can column chart and line chart be combined together, like this?



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

To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/MOwTOOasvwU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

Daniel LaLiberte

unread,
Sep 4, 2015, 7:01:06 PM9/4/15
to Google Visualization API
Tong, check out the 'orientation' option.  Setting the orientation to 'vertical' means the domain values go on the vertical axis.


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



--
dlaliberte@Google.com   5CC, Cambridge MA
daniel.laliberte@GMail.com 9 Juniper Ridge Road, Acton MA

Tong Sun

unread,
Sep 4, 2015, 9:30:44 PM9/4/15
to Google Visualization API
Thanks a lot Daniel, 

Yep, I got the orientation to 'vertical', however, it seems there are more things need to be done to get my double-Y chart correctly.

I've turned this graph, https://fiddle.jshell.net/mb014j90/1/show/, to vertical orientation, 
like this https://fiddle.jshell.net/mb014j90/9/, but I noticed that my previous double-Y is only single Y now.

Is it possible to have vertical orientated ComboChart with double-Y?

Thanks


On Friday, September 4, 2015 at 7:01:06 PM UTC-4, Daniel LaLiberte wrote:
Tong, check out the 'orientation' option.  Setting the orientation to 'vertical' means the domain values go on the vertical axis.
On Fri, Sep 4, 2015 at 6:10 PM, Tong Sun <sunto...@gmail.com> wrote:
Thanks,

Can I use Bar Charts instead in ComboChart? -- I haven't figured out a way to turn the column chart into Bar Chart. 

Thanks

On Sat, Aug 1, 2015 at 3:16 AM, 'Jon Orwant' via Google Visualization API <google-visua...@googlegroups.com> wrote:
On Sat, Aug 1, 2015 at 4:41 AM, Tong Sun <sunto...@gmail.com> wrote:
Hi, 

Can column chart and line chart be combined together, like this?



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 google-visualization-api+unsub...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/MOwTOOasvwU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualization-api+unsub...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

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



--
dlali...@Google.com   5CC, Cambridge MA
daniel.l...@GMail.com 9 Juniper Ridge Road, Acton MA

Daniel LaLiberte

unread,
Sep 4, 2015, 9:39:48 PM9/4/15
to Google Visualization API
Unfortunately, Google Charts doesn't support drawing a second hAxis yet (which would be for a second y-axis in your case).

If you *really* want to do this, there is a hacky way you might try, by drawing a second chart above the first, using the same data and options except for hiding the display of the chart itself and drawing the other axis.  The easiest way to hide the chart is by setting chartArea.height: 0.  You may need to constrain the hAxis viewWindow min and max to be the same for both charts.

To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/MOwTOOasvwU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

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



--
dlali...@Google.com   5CC, Cambridge MA
daniel.l...@GMail.com 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 google-visualizati...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.

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



--
dlaliberte@Google.com   5CC, Cambridge MA
daniel.laliberte@GMail.com 9 Juniper Ridge Road, Acton MA
Reply all
Reply to author
Forward
0 new messages