rafaelklaessen / react-tradingview-widget

React component for rendering the TradingView Advanced Real-Time Chart Widget.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

adding library source

ShubhamAgr opened this issue · comments

Hi , Is it possible to change src of trading view library?

I'm afraid not, but I could add the feature if you want me to. Although I do wonder, what do you wish to use custom srcs for?

But you could manually use a different script by putting it in the HTML, if you just add the tradingview-widget-script ID to the script tag:

<script id="tradingview-widget-script" src="theurl.com"></script>

This works because the widget will not load the TradingView script if it's already there.