Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Piechart: How to show values instead of percentage?

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

Thanks,

like image 897
Sqeezer Avatar asked Feb 17 '12 07:02

Sqeezer


1 Answers

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

like image 157
naveen Avatar answered Oct 20 '22 19:10

naveen