rafaelklaessen / react-tradingview-widget

React component for rendering the TradingView Advanced Real-Time Chart Widget.
MIT License
273 stars 94 forks source link

adding library source #25

Open ShubhamAgr opened 5 years ago

ShubhamAgr commented 5 years ago

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

rafaelklaessen commented 5 years ago

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?

rafaelklaessen commented 5 years ago

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.