Google Pie Chart: How can I remove the white line

2019-09-01 01:32发布

Similar to this question, but for Google Pie Charts:

How can I remove the white lines between the slices on a Google Pie Chart:

enter image description here

On the image above, I want to remove the white space highlighted by the green arrow.

1条回答
看我几分像从前
2楼-- · 2019-09-01 02:11

Use the configuration option pieSliceBorderColor with the value transparent (see documentation here).

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

Before:

enter image description here

After:

enter image description here

Fiddle with it: http://jsfiddle.net/PWc43/

查看更多
登录 后发表回答