I've got a chart tag gotten from trading view and I'm trying to render this using NextJs, Do you think this would work. The div looks like this <div class="tradingview-widget-container"> <div id="tradingview_35ba5"></div> <div class="tradingview-widget-copyright"><a href="https://www.tradingview.com/symbols/AAPL/" rel="noopener" target="_blank"><span class="blue-text">Apple</span></a> by TradingView</div> <script type="text/javascript" src="https://s3.tradingview.com/tv.js"></script> <script type="text/javascript"> new TradingView.MediumWidget( { "symbols": [ [ "Apple", "AAPL|1D" ], [ "Google", "GOOGL|1D" ], [ "Microsoft", "MSFT|1D" ] ], "chartOnly": false, "width": 1000, "height": 500, "locale": "en", "colorTheme": "dark", "autosize": false, "showVolume": false, "hideDateRanges": false, "scalePosition": "right", "scaleMode": "Normal", "fontFamily": "-apple-system, BlinkMacSystemFont, Trebuchet MS, Roboto, Ubuntu, sans-serif", "noTimeScale": false, "valuesTracking": "1", "chartType": "line", "fontColor": "#787b86", "gridLineColor": "rgba(240, 243, 250, 0.06)", "backgroundColor": "#131722", "container_id": "tradingview_35ba5" } ); </script> </div>
<div class="tradingview-widget-container"> <div id="tradingview_35ba5"></div> <div class="tradingview-widget-copyright"><a href="https://www.tradingview.com/symbols/AAPL/" rel="noopener" target="_blank"><span class="blue-text">Apple</span></a> by TradingView</div> <script type="text/javascript" src="https://s3.tradingview.com/tv.js"></script> <script type="text/javascript"> new TradingView.MediumWidget( { "symbols": [ [ "Apple", "AAPL|1D" ], [ "Google", "GOOGL|1D" ], [ "Microsoft", "MSFT|1D" ] ], "chartOnly": false, "width": 1000, "height": 500, "locale": "en", "colorTheme": "dark", "autosize": false, "showVolume": false, "hideDateRanges": false, "scalePosition": "right", "scaleMode": "Normal", "fontFamily": "-apple-system, BlinkMacSystemFont, Trebuchet MS, Roboto, Ubuntu, sans-serif", "noTimeScale": false, "valuesTracking": "1", "chartType": "line", "fontColor": "#787b86", "gridLineColor": "rgba(240, 243, 250, 0.06)", "backgroundColor": "#131722", "container_id": "tradingview_35ba5" } ); </script> </div>
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I've got a chart tag gotten from trading view and I'm trying to render this using NextJs, Do you think this would work.
The div looks like this
<div class="tradingview-widget-container"><div id="tradingview_35ba5"></div>
<div class="tradingview-widget-copyright"><a href="https://www.tradingview.com/symbols/AAPL/" rel="noopener" target="_blank"><span class="blue-text">Apple</span></a> by TradingView</div>
<script type="text/javascript" src="https://s3.tradingview.com/tv.js"></script>
<script type="text/javascript">
new TradingView.MediumWidget(
{
"symbols": [
[
"Apple",
"AAPL|1D"
],
[
"Google",
"GOOGL|1D"
],
[
"Microsoft",
"MSFT|1D"
]
],
"chartOnly": false,
"width": 1000,
"height": 500,
"locale": "en",
"colorTheme": "dark",
"autosize": false,
"showVolume": false,
"hideDateRanges": false,
"scalePosition": "right",
"scaleMode": "Normal",
"fontFamily": "-apple-system, BlinkMacSystemFont, Trebuchet MS, Roboto, Ubuntu, sans-serif",
"noTimeScale": false,
"valuesTracking": "1",
"chartType": "line",
"fontColor": "#787b86",
"gridLineColor": "rgba(240, 243, 250, 0.06)",
"backgroundColor": "#131722",
"container_id": "tradingview_35ba5"
}
);
</script>
</div>