Percentaged Stacked Column Chart

1,845 views
Skip to first unread message

Florian Lettner

unread,
Apr 2, 2012, 12:54:05 PM4/2/12
to Google Visualization API
It would be really nice to have a percentaged mode for the column
chart so that each column is transformed to the range of 0% and 100%.
Basically the data should be set the same way as now but there should
be internal functionality to convert the values internally. For
example, if you have something like two columns for two different
tests and each column has test participants which consists of male and
female and the first test column has 30 males and 70 females and the
second column has 60 males and 140 females both colums should result
into the same height and distribution, namely 30% : 70%.

Would that be possible? Otherwise I have to calculate the percentages
on my own and then I loose the information about the absolut data
which cannot be displayed as tooltip then.

Regards,
Florian

asgallant

unread,
Apr 2, 2012, 4:15:11 PM4/2/12
to google-visua...@googlegroups.com
In this case, you can have your cake and eat it too, by using a DataView with calculated columns.  See this example: http://jsfiddle.net/qy6cn/ 
Reply all
Reply to author
Forward
0 new messages