最佳答案
您可以通过将 pieSliceBorderColor
设置为 "transparent"
来消除该间隙。在 Google Code Playground 上尝试以下操作:
function drawVisualization() {
// Create and populate the data table.
var data = google.visualization.arrayToDataTable([
['Task', 'Hours per Day'],
['Work', 11],
['Eat', 2],
['Commute', 2],
['Watch TV', 2],
['Sleep', 7]
]);
// Create and draw the visualization.
new google.visualization.PieChart(document.getElementById('visualization')).
draw(data, {title:"So, how was your day?", pieSliceBorderColor:"transparent"});
}
关于javascript - 谷歌饼图 : remove white gap between pie slices,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15410695/