Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
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

 Answers
3

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/


[#72023] Tuesday, March 11, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
santiago

Total Points: 375
Total Questions: 106
Total Answers: 97

Location: Argentina
Member since Thu, Mar 18, 2021
3 Years ago
;