Combo horizontal bar chart?

270 views
Skip to first unread message

Sshekar7

unread,
May 1, 2012, 3:59:23 PM5/1/12
to Google Visualization API
Hi,

Is there an example to do this kind of chart?

https://picasaweb.google.com/sshekar7/May12012#5737656095838427650


Its not just placing three bar graphs next to each other but one
graphs so that the bars align properly. This was done from another
package but does not look that great, so trying out google charts.

Thanks

asgallant

unread,
May 1, 2012, 4:13:29 PM5/1/12
to google-visua...@googlegroups.com
There is no support for doing this in one chart.  You can try it using three charts, however.  If they all have the same domain axis values, height, and width parameters, then the bars should line up.  Turn off the axis labels for the charts on the right and you should be good to go.

NA

unread,
May 1, 2012, 11:58:48 PM5/1/12
to google-visua...@googlegroups.com
You could do something very similar using a Table with a BarFormatter.  The BarFormatter is one of the nicer features of the Google Table charts; I use it frequently to produce charts similar to what you posted here. 

hope that helps,

-- N









On Tuesday, May 1, 2012 3:59:23 PM UTC-4, Sshekar7 wrote:

Sshekar7

unread,
May 2, 2012, 3:02:56 AM5/2/12
to Google Visualization API
I tried this and seem reasonable. Is there a way to add value labels
next to the bar like i have in my link above?

Thanks

Sshekar7

unread,
May 2, 2012, 3:04:03 AM5/2/12
to Google Visualization API
N - Thanks. Do you have sample code which you could share?

NA

unread,
May 2, 2012, 7:43:28 AM5/2/12
to google-visua...@googlegroups.com
You can create a sample by creating a Table with 4 columns in it, and then apply a BarFormatter to the last 3 columns.  It will give you the chart that you're looking for. 

If you have problems or difficulties, post your code and I'll take a look.


Reply all
Reply to author
Forward
0 new messages