如何在 Google 饼图中同时显示百分比和值?
最佳答案
您可以将 pieSliceText
设置为 value-and-percentage
以同时显示 Value 和 Percentage。
var options = {
pieSliceText: 'value-and-percentage'
};
var chart = new google.visualization.PieChart(document.getElementById('chart_div'));
chart.draw(data, options);
请注意,此选项目前未记录(请参阅 this ),因此请自行承担使用风险。
关于javascript - Google 饼图同时显示百分比和值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22361426/