2014-03-06 49 views
0

类似this question,但对于谷歌饼图:谷歌饼图:我如何删除切片之间的白线?

如何删除在谷歌饼图切片之间的白线:

enter image description here

在上面的图片,我想删除绿色箭头突出显示的空白区域。

+0

[谷歌饼图可能重复:除去段之间的白色差距](HTTP:// STA ckoverflow.com/questions/15410695/google-pie-charts-remove-white-gap-between-segments) –

+1

@AntoJurković是的!同样的问题,相同的答案。我将编辑另一个问题及其标签,以便在询问之前使用的搜索查询更容易显示。 – Guillaume

回答

3

使用值为transparentsee documentation here)的配置选项pieSliceBorderColor

new google.visualization.PieChart(document.getElementById('visualization')). 
    draw(data, { 
       pieSliceBorderColor : "transparent", // Add this line 
       title : "So, how was your day?" 
       } 
    ); 

前:

enter image description here

后:

enter image description here

拨弄它:http://jsfiddle.net/PWc43/