12
rated 0 times
[
15]
[
3]
/ answers: 1 / hits: 28287
/ 10 Years ago, wed, march 12, 2014, 12:00:00
How to display both Percentage and Values in Google Pie Chart ?
More From » jquery
How to display both Percentage and Values in Google Pie Chart ?
You can set pieSliceText
as value-and-percentage
to display both Value and Percentage.
var options = {
pieSliceText: 'value-and-percentage'
};
var chart = new google.visualization.PieChart(document.getElementById('chart_div'));
chart.draw(data, options);
Please note that this option is currently undocumented (see this), so please use at your own risk.
http://jsfiddle.net/6M2sH/301/