Tooltip,

26 views
Skip to first unread message

Tiny Turtle

unread,
Nov 1, 2011, 6:37:58 AM11/1/11
to Google Visualization API
Dear all,

I am working on a vertical bar chart with stacked bars. At the peak of
all bars, I would like to show a tooltip with total height of all
bars. Could someone help me in this case?

For example, there are two bars in a column. Height of the first bar
is 5 and of the second bar is 10. I would like to show a tooltip at
the peak of two stacked bars as "total stack height: 15" when we focus
the mouse pointer at the peak of two stacked bars.

Thank you so much in advance!

Roni Biran

unread,
Nov 1, 2011, 8:02:04 AM11/1/11
to google-visua...@googlegroups.com
currently this option is not supported, however, you can set the value of the last series to have the calculated total values of the columns.




--
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.


asgallant

unread,
Nov 1, 2011, 9:43:36 AM11/1/11
to google-visua...@googlegroups.com
That won't work with stacked charts, but you can set the formatted value of each point to be the sum of all points to that height.  For example, with 4 series:

data.addRow([2, {v: 3, f: '5'}, {v: 1, f: '6'}, {v: 4, f: '10'}]);

Tiny Turtle

unread,
Nov 2, 2011, 1:49:04 AM11/2/11
to google-visua...@googlegroups.com
Hi Asgallant,

Thank you so much for your guide. I modified the peak of all series successfully!

Tiny Turtle

unread,
Nov 2, 2011, 1:51:44 AM11/2/11
to google-visua...@googlegroups.com
Hi TheNez,

Thank you so much for your guide. I modified the peak of all series successfully by using a variable to sum all series!
Reply all
Reply to author
Forward
0 new messages