Show Total in Legend for Pie Charts

5,588 views
Skip to first unread message

Saad Malik

unread,
Mar 27, 2014, 9:44:25 PM3/27/14
to google-visua...@googlegroups.com
Hi,
Is it possible to add a 'Total' in the legend of pie charts? The total, would show the total value of all the data values added together. If not possible in the legend, any recommendations on how to add a floating element (div) below the legend.

Thanks,
Saad

asgallant

unread,
Mar 28, 2014, 10:30:13 AM3/28/14
to google-visua...@googlegroups.com
Would this work for you: http://jsfiddle.net/asgallant/6rC3h/?

Saad Malik

unread,
Mar 28, 2014, 2:12:53 PM3/28/14
to google-visua...@googlegroups.com
Asgallant, this is awesome! Thank you so much.

I'm going to figure out how to style the 'Total' entry a little differently, but I should be able to figure that out on my own. Thanks again!

Tweet Ster

unread,
Feb 7, 2019, 6:44:45 PM2/7/19
to Google Visualization API
The thing with links is that it is very dangerous to have a bad behavior of simply clicking one that goes to an unfamiliar domain.

can't you just put the solution text in the reply. 

copy and paste should work right?

Reply all
Reply to author
Forward
0 new messages