Donut charts with a single value don't show the value

68 views
Skip to first unread message

Oren Hurvitz

unread,
Aug 20, 2014, 10:02:11 AM8/20/14
to google-visua...@googlegroups.com
Occasionally I need to display a donut chart that only has one value, i.e. a single slice that equals 100%. When that happens, the chart doesn't show the slice's value on top of the slice. This problem doesn't happen with regular pie charts; only with donut charts.

Is there any way to get the value to show up? If not, then can the developers fix this for the next version? Thanks!

Andrew Gallant

unread,
Aug 20, 2014, 7:42:17 PM8/20/14
to google-visua...@googlegroups.com
It is showing the label - in the center of the slice.  The default label color is white and the default background color is white, so the label is not distinguishable from the background.  If you change the text color, it shows up: http://jsfiddle.net/asgallant/mx03tcx5/

Oren Hurvitz

unread,
Aug 21, 2014, 12:08:10 AM8/21/14
to google-visua...@googlegroups.com
Thanks! That worked.


--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/Nk_KYPHMF24/unsubscribe.
To unsubscribe from this group and all its topics, 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.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages