Hi guys,
Has anyone tried embedding a widget/plug-ins in their shiny app?
I was looking to integrate one of Tradingviews widgets in simple iframe format into my app, however without success.
Generally found little on this topic, but tried two ways directly in UI:
1. via iframe
div(
iframe(width = "1000", height = "500",
url_link = "https://s3.tradingview.com/external-embedding/embed-widget-market-overview.js")
)
2. via HTML tag
tags$div(
HTML('
<div class="tradingview-widget-container">
<div class="tradingview-widget-container__widget"></div>
<div class="tradingview-widget-copyright"><a href="https://www.tradingview.com/markets/cryptocurrencies/prices-all/" rel="noopener" target="_blank"></div>
<script type="text/javascript" src="https://s3.tradingview.com/external-embedding/embed-widget-screener.js" async>
{
"width": "100%",
"height": "100%",
"defaultColumn": "overview",
"screener_type": "crypto_mkt",
"displayCurrency": "USD",
"locale": "en",
"transparency": true
}
</script>
</div>
')
)
Looking forward to your thoughts on this, thank you!