문제

I created a pie chart using the Claro theme and want to change the outline color to transparent or just turn it off. The default background color for Claro is a light gray which I wanted to change to transparent. I was able to change the background color to transparent before setting the chart theme by using this code:

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

I am still left with a border around the chart that is light gray. Any ideas on how to change this to transparent or turn it off??

도움이 되었습니까?

해결책

You have to change the "stroke" color for the theme like this:

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

See this demo in jsfiddle

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top