更改主题轮廓颜色



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

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

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

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

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

在 jsfiddle 中查看此演示

最新更新