Google饼图:如何删除切片之间的白线?

时间:2014-03-06 14:57:04

标签: javascript charts google-visualization pie-chart

this question类似,但对于Google Pie Charts:

如何删除Google饼图上切片之间的白线:

enter image description here

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

1 个答案:

答案 0 :(得分:4)

使用值为pieSliceBorderColorsee documentation here)的配置选项transparent

  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/