PieChart as the tooltip in a stacked AreaChart

12 views
Skip to first unread message

Sam Halliday

unread,
Dec 27, 2011, 11:37:05 AM12/27/11
to Google Visualization API
Hi all,

It is possible to set the 'focusTarget' of a ComboChart to be
'category' meaning the tooltip will list all the values at that row.

If 'isStacked' is true (or, I suppose, even if it is not) it would be
really great if the tooltip displayed a PieChart instead of listing
the values. Is this possible? I can't seem to work out how to set the
tooltip dynamically like this.

Regards, Sam

asgallant

unread,
Dec 27, 2011, 1:39:31 PM12/27/11
to google-visua...@googlegroups.com
I'm not quite sure what you mean by your first question, but it sounds like you are looking for something similar to the "domain" data role:  http://code.google.com/apis/chart/interactive/docs/roles.html

As to your second, I don't believe there is any way to put a PieChart (or anything other than text, for that matter) inside a tooltip.  You could create a Pie chart along side the main chart and link them together, though.

Sam Halliday

unread,
Dec 27, 2011, 2:21:21 PM12/27/11
to Google Visualization API
Hmm, thanks - that's what I had figured. Unfortunately that isn't
going to look great so I'll stick to tooltips. (because the tooltips
are all in SVG, I can't even edit the element manually to do this)
Reply all
Reply to author
Forward
0 new messages