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/
You can not display both on the chart labels. For reference use this
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With