Stacked Bar Chart

212 views
Skip to first unread message

India#777

unread,
Feb 16, 2012, 9:32:49 AM2/16/12
to Google Visualization API
Hai all,
I am using Combo Chart for Stacked bar. I need to Display the bar by
maximum & minimum of data value.that is, if the bar having minimum
value means ,it display low in the order of the stacked bar.


I need the Stacked bar Arrangement like Image in the below url with
Combo Chart:

http://chart.googleapis.com/chart?cht=bvo&chs=300x300&chdlp=r&chdl=Bolivia|Ecuador|Madagascar|Papua%20%20Guinea|Rwanda|Average&chco=3399CC%2C80C65A%2CFF0000%2CFFCC33%2CBBCCED%2C3399CC%2C990066%2CFF9900&chd=e%3ABsAABPAOAD%2CtW3o6R3DfZ%2CV2aNZhbGb5%2Cwv..l8vCyU%2CRyIoOyEhNC%2CbFe5bjayYi

Is this possible means, please give me the solution.........
Thanks in Advance.

ChartMan

unread,
Feb 17, 2012, 5:43:28 AM2/17/12
to google-visua...@googlegroups.com
The stack order is by the order the data is arranged in the input data table and it cannot be changed otherwise.

ChartMan




--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.


India#777

unread,
Feb 18, 2012, 12:28:03 AM2/18/12
to Google Visualization API
Thanks for your reply ChartMan.If am using Dynamic Data for Creating
Chart Means, What i do?

ChartMan

unread,
Feb 18, 2012, 6:58:53 AM2/18/12
to google-visua...@googlegroups.com

Please create an example that we can work with in the Ajax APIs playground with the data you need.

ChartMan

India#777

unread,
Feb 18, 2012, 8:28:09 AM2/18/12
to Google Visualization API
Data are Coming from Data Base. [ My client need to display Stacked
Bar in Combo Chart like "bvo" chart type in Image Chart].

ChartMan

unread,
Feb 19, 2012, 4:16:06 AM2/19/12
to google-visua...@googlegroups.com
That doesn't help me too understand your scenario ...

On Sat, Feb 18, 2012 at 3:28 PM, India#777 <sivaranja...@gmail.com> wrote:
Data are Coming from Data Base. [ My client need to display Stacked
Bar in Combo Chart like "bvo" chart type in Image Chart].

asgallant

unread,
Feb 21, 2012, 2:07:01 PM2/21/12
to google-visua...@googlegroups.com
If I understand the request correctly, you want to be able to control the stacking on a bar-by-bar basis.  This is not supported in the API.  I can conceive of a way to accomplish this using chart-hacking methods similar to those used to get unique colors for each bar in a series (search the forums for example code), but the number of additional series required would be potentially enormous.  With 6 data series that could be stacked in any order, you would need up to 36 data columns in the dataTable (one for each series in each possible position) to make it work with the hack.  If you needed to be able to auto-stack the data, the code required would be quite complex.  Personally, I can't think of any situation where the effort would be worth it, but it is doable, however difficult.
Reply all
Reply to author
Forward
0 new messages