0

我使用 Claro 主题创建了一个饼图,并且想将轮廓颜色更改为透明或将其关闭。Claro 的默认背景颜色是浅灰色,我想将其更改为透明。在使用以下代码设置图表主题之前,我能够将背景颜色更改为透明:

theme.chart.fill={color: "transparent"};
theme.plotarea.fill={color: "transparent"};
chart.setTheme(theme);

我仍然在图表周围留下浅灰色的边框。关于如何将其更改为透明或将其关闭的任何想法?

4

1 回答 1

2

您必须像这样更改主题的“笔触”颜色:

theme.chart.stroke = {color:"transparent"}

在 jsfiddle 中查看这个演示

于 2013-01-29T18:21:58.623 回答