JorrinKievit/react-ts-tradingview-widgets

How to change the background color of the widgets?

ramirezsandin opened this issue · 1 comments

Hi, this is more a question than an issue.

We're able to change the theme color of the widget to dark or light, and this would give the widget the default background of the tradingview scheme, that is dark blue and white.

We can also tell the widget to be transparent, and this will make it indeed transparent, but this transparency will affect all the layers of the widget until it reaches the body of the iframe wich is white, and this background color of the body cannot be changed because it is inside the iframe, so then the background of the widget widget becomes white no matter what.

Is there any way of changing this?

Thanks,
Jorge

Ok, found the solution.

Just style the iframe with the attribute color-scheme: 'normal'