谷歌饼图:如何删除切片之间的白线? [英] Google Pie Chart: How can I remove the white line between slices?

查看:2078
本文介绍了谷歌饼图:如何删除切片之间的白线?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

类似于)。

  visualization.PieChart(document.getElementById('visualization'))。 
draw(data,{
pieSliceBorderColor:transparent,//添加此行
title:那么,你的一天是怎么样的?
}
);

之前:





之后:



>



不好意思: http://jsfiddle.net/PWc43/


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.

解决方案

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/

这篇关于谷歌饼图:如何删除切片之间的白线?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆