2014-03-06 51 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/