Subdivide a pie chart section

20 views
Skip to first unread message

Navneet Kaur Johal

unread,
Nov 27, 2019, 1:17:51 AM11/27/19
to Google Visualization API

Is it possible to further divide a pie section?

I have data to show on the pie chart:

['Task', 'Hours per Day'],
['Work',     11],
['Eat',       2],
['Sleep',     7],
['Other',     4]

If I want to subdivide the 'Other' section of the pie chart into:

['Commute',  2],
['Watch TV', 2]

Is this possible?

Daniel LaLiberte

unread,
Nov 27, 2019, 11:36:50 AM11/27/19
to Google Visualization API
The reason for the Other slice is to contain all the values that are otherwise too small to be in their own slice.  You can set the sliceVisibilityThreshold for how small "too small" is.  We don't have an option for exposing all the values in that slice, however, but that would be a good idea.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/be03ef61-9b61-4c10-8b70-c3a42c5729ad%40googlegroups.com.


--

Ray Thomas

unread,
Nov 28, 2019, 1:41:40 AM11/28/19
to Google Visualization API
An idea I had when I first read this is to create a custom tooltip for that slice of the pie chart to explain or display the information, even another pie chart, for that slice - https://developers.google.com/chart/interactive/docs/customizing_tooltip_content

According to Stackoverflow, if you only want that particular slice to show the custom tooltip set all the tooltip information for the other slices to null or "" and they will show the default tooltips. If you don't want them to show any tooltips at all, then you can hide them with CSS - https://stackoverflow.com/questions/39977947/removing-tooltip-for-one-part-of-piechart-google-charts

Reply all
Reply to author
Forward
0 new messages