GoinOff
GoinOff

Reputation: 1802

Changing theme outline color

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??

Upvotes: 0

Views: 1052

Answers (1)

Noelia
Noelia

Reputation: 281

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

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

See this demo in jsfiddle

Upvotes: 2

Related Questions