For those of you interested, there is a (new?) undocumented option "pieHole" which adds a hole in the center of a PieChart to create a donut chart. The pieHole option looks like it takes a number between 0 and 1, representing the proportion of the radius of the hole to the radius of the pie.
On Thursday, August 23, 2012 1:15:42 PM UTC-4, asgallant wrote: > > No, there is no donut chart option. Someone came up with a pretty good > way to fake one, though: http://jsfiddle.net/martynas/z7ZSR/ > > The CSS for #chart_div:after is what creates the empty space in the > middle. You will need to adjust the dimensions and positioning in here to > make it line up correctly. The event listeners and shot/hide/get tooltip > functions are all to handle the chunk of data that represents the "missing" > piece - you don't need those if you don't have any missing data. > > Alternatively, you can create a second (smaller) pie chart and position it > on top of the larger one, which would allow you to have multiple series of > data. > > On Thursday, August 23, 2012 3:58:56 AM UTC-4, mal245 wrote: >> >> Can I do a donut chart with pie chart visualization? >> Is there any option en pie chart in order to see a donut chart? >> >> Thank you. >> > -- 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 http://groups.google.com/group/google-visualization-api?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
