When the slice is so slim that you can't fit the text inside, then you
might want to consider the labeled legend option:
legend: { position: 'labeled' }
You'll have to change your chart bounds so there is room for the labeled
legend values, which are displayed outside the piechart circle.
When you have very small values, you might also need to change the
sliceVisibilityThreshold to 0, otherwise it may be hidden in the
'remainders' slice.
On Tue, Dec 15, 2015 at 5:52 PM, Sergio Guillen <[email protected]>
wrote:
> I've been trying Google's Chart API for a time, it works like a charm for
> my needs but I figured out that when using pie chart with low percentages
> the library doesn't display the lower ones.
>
> I tried to reduce fontSize property, it works for certain values (example
> http://jsfiddle.net/73tnp7ot/2/) but for lower ones the library doesn't
> display them, for the example given if I change values from 4 to 2
> percentage will not be displayed. http://jsfiddle.net/5rd751hx/5/
>
> I need the percentage to be displayed, this is because I have to export
> the chart to an image.
>
> Is there a way to display low percentages inside or outside the pie?
>
> Thanks in advance
>
> --
> 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 [email protected].
> To post to this group, send email to
> [email protected].
> Visit this group at
> https://groups.google.com/group/google-visualization-api.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-visualization-api/05ac7c6b-9bf1-4b9d-9867-75dad7f36a97%40googlegroups.com
> <https://groups.google.com/d/msgid/google-visualization-api/05ac7c6b-9bf1-4b9d-9867-75dad7f36a97%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
[email protected] <[email protected]> 5CC, Cambridge MA
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJN%2BcBd9zM%3DUh3ibSQDmQOLoD9MCs3CSYhvF0CivNpcYYw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.