Google Piechart:如何显示值而不是百分比?

Sqe*_*zer 23 javascript charts google-visualization

是否可以在Google Chart PieChart切片中显示值而不是百分比?

谢谢,

nav*_*een 45

是.您可以.只需设置这样pieSliceText的选项即可

var options = {
    width: 450,
    height: 300,
    title: 'My Daily Activities',
    pieSliceText: 'value'
};?
Run Code Online (Sandbox Code Playgroud)

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