Partially stacked Bar Charts

111 views
Skip to first unread message

relief...@gmail.com

unread,
Nov 2, 2015, 6:59:29 AM11/2/15
to Google Visualization API
Hey there,

i have the following problem. I have a bar chart, but i don't want all the values to be stacked. Here's an example. I have 3 values:

Value 1: 200mm
Value 2: -190mm
Value 3: 20mm

Basically I want to achive the following. The first and the second Value shall be stacked (they are always a pair of positive and negative). The third value should also be displayed in the same bar but not stacked. So the base for the third value should be 0 and it would reach up to 20mm.

I tried alot now but i can't really get it to work. Anyone here with an idea how something like that could be achieved? Thanks in advance for any help

Greetings Chris

Daniel LaLiberte

unread,
Nov 2, 2015, 9:59:01 AM11/2/15
to Google Visualization API
Hi Chris,

The feature you want is not supported in the classic Google Charts, but you can do that with the new Material Column chart.    Here is an example:  https://jsfiddle.net/dlaliberte/f7r3odo7/

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/4a8f12bc-520a-4492-afe1-296485078801%40googlegroups.com.
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

relief...@gmail.com

unread,
Nov 3, 2015, 2:17:50 AM11/3/15
to Google Visualization API
Awesome! Thanks, thats exactly what i needed.

Greetings Chris
Reply all
Reply to author
Forward
0 new messages