Re: Legend not to use Other

29 views
Skip to first unread message

asgallant

unread,
Oct 8, 2012, 3:59:59 PM10/8/12
to google-visua...@googlegroups.com
You have to set the "sliceVisibilityThreshold" option to a small number (defalt is 1/720).  Any slices that are smaller than the sum of all slices * this value are lumped together in the "other" category.  Set this to 0 to make all slices draw individually, regardless of their proportional size (though they may be too small to actually distinguish in the chart).

On Monday, October 8, 2012 1:58:09 AM UTC-4, Chee Seng Chua wrote:
Hi all, 

I am drawing a PieChart with the following data:-

['Status', 'Count'],
['Succeeded', 7378],
['Failed', 1],
['Ignored', 27],
['Pending', 30],
['Canceled', 10]

The chart shows correctly, but the legend shows:

Succeeded
Ignored
Pending
Other

I prefer the legend to exact 'Failed' and 'Canceled' in the legend, as the set is pretty much fixed.  Is there anywhere that I can remove the Other and display 'Failed' and 'Canceled' in legend instead?

Thanks!

Best Regards, 
Chee Seng

Chee Seng Chua

unread,
Oct 9, 2012, 11:31:31 AM10/9/12
to google-visua...@googlegroups.com
It works!  How could I miss that part of documentation.

Great thanks!
Reply all
Reply to author
Forward
0 new messages