本文介绍了谷歌饼图:如何删除切片之间的白线?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
类似于)。
visualization.PieChart(document.getElementById('visualization'))。
draw(data,{
pieSliceBorderColor:transparent,//添加此行
title:那么,你的一天是怎么样的?
}
);
之前:
之后:
>
不好意思:
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/
这篇关于谷歌饼图:如何删除切片之间的白线?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!