Vertically stacked Google Bar Charts
Asked Answered
H

1

17

I'm trying to produce a vertically stacked bar chart using the Google Charts API and I thought I had found the solution when I found the option:

isStacked: true

However, This seems to add the stacking horizontally (see link below) and I cant seem to find a way to do it. Anyone come across this before or can help me?

See: http://jsfiddle.net/tmA55/1/

Thanks

Heterogenesis answered 22/11, 2013 at 14:24 Comment(0)
G
27

Do you mean a vertically stacked ColumnChart?

Just change the chart from BarChart to ColumnChart:

new google.visualization.ColumnChart(document.getElementById('chart'))

http://jsfiddle.net/asgallant/tmA55/2/

Gumwood answered 22/11, 2013 at 16:47 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.