Google Piechart: How to show values instead of percentage?

Sqeezer picture Sqeezer · Feb 17, 2012 · Viewed 23.7k times · Source

Is it possible to show values instead of percentage in Google Chart PieChart slices?

Thanks,

Answer

naveen picture naveen · Feb 17, 2012

Yes. you can. Just set pieSliceText in the options like this

var options = {
    width: 450,
    height: 300,
    title: 'My Daily Activities',
    pieSliceText: 'value'
};​

Documentation: http://code.google.com/apis/chart/interactive/docs/gallery/piechart.html#Example