Help with pie chart - duplicates appearing

33 views
Skip to first unread message

jtes...@gmail.com

unread,
Apr 17, 2013, 10:55:27 AM4/17/13
to google-visua...@googlegroups.com
I am working off of the Google api example for a pie chart replacing the data.addRows/google.visualization.arrayToDataTable with the below, however, for some reason, the last row "other" is showing up twice:

data.addRows([
 ['Microsoft Outlook', 2651],
 ['Windows Live Desktop', 657],
 ['iOS Devices', 1904],
 ['Gmail', 625],
 ['Yahoo! Mail: ', 629],
 ['Apple Mail', 1358],
 ['Undetectable', 842],
 ['Android', 515],
 ['Hotmail', 658],
 ['Lotus Notus', 620],
 ['AOL', 146],
 ['Postbox', 6],
 ['Windows Phone', 11],
 ['Thunderbird', 145],
 ['Other', 21]

]);

Any idea what the issue could be? Is it because there is too much data? 

Sergey Grabkovsky

unread,
Apr 17, 2013, 10:57:32 AM4/17/13
to google-visua...@googlegroups.com
The PieChart adds its own 'Other' category that is a collection of all the slices that were deemed too small to show up on their own. You can remedy this by changing the sliceVisibilityThreshold option.

- Sergey


--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

jtes...@gmail.com

unread,
Apr 17, 2013, 11:03:23 AM4/17/13
to google-visua...@googlegroups.com
Ah ha! That fixed it. Thanks. I should have looked into the options before thinking it was a coding error on my part.

Thanks.

- Sergey


To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages