Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 Claro 主题创建了一个饼图,并且想将轮廓颜色更改为透明或将其关闭。Claro 的默认背景颜色是浅灰色,我想将其更改为透明。在使用以下代码设置图表主题之前,我能够将背景颜色更改为透明:
theme.chart.fill={color: "transparent"}; theme.plotarea.fill={color: "transparent"}; chart.setTheme(theme);
我仍然在图表周围留下浅灰色的边框。关于如何将其更改为透明或将其关闭的任何想法?
您必须像这样更改主题的“笔触”颜色:
theme.chart.stroke = {color:"transparent"}
在 jsfiddle 中查看这个演示