Google Pie Chart: How can I remove the white line between slices?

核能气质少年 提交于 2019-12-25 02:53:34

问题


Similar to this question, but for Google Pie Charts:

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

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


回答1:


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:

After:

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



来源:https://stackoverflow.com/questions/22228074/google-pie-chart-how-can-i-remove-the-white-line-between-slices

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!