Javascript chart in Swift

Hi everyone, i'm more of a finance guy so pls bear with me a little.

I want to include a chart in my app, and i found a chart that is miles better than what i could code and want to include it in my app. it is a javascript widget, so I was wondering how could i implement this into my app. Thanks in advance!
if it helps at all, it looks like :

and the javascript widget code is:

<!-- TradingView Widget BEGIN -->
<div class="tradingview-widget-container">
      <div id="tradingview_941a3"></div>
  <div class="tradingview-widget-copyright"><a     
href="" rel="noopener"     
target="_blank"><span class="blue-text">AAPL Chart</span></a> by TradingView</div>
  <script type="text/javascript" src=""></script>
  <script type="text/javascript">
  new TradingView.widget(
    "width": 980,
    "height": 610,
    "symbol": "NASDAQ:AAPL",
    "interval": "D",
    "timezone": "Etc/UTC",
    "theme": "Light",
    "style": "1",
    "locale": "en",
    "toolbar_bg": "#f1f3f6",
    "enable_publishing": false,
    "allow_symbol_change": true,
    "container_id": "tradingview_941a3"
  <!-- TradingView Widget END -->

Are you looking for something for any platform, or just Apple? If this is for just Apple (or Linux, or Windows), this is probably not the best forum since it really doesn't have anything to do directly with Swift. If you are looking for an Apple solution, you might want to go to the Apple developer forums, and ask about WKWebView.

yes, it was just for apple. But thank you for the suggestion and i will check out the apple developer forum!

Terms of Service

Privacy Policy

Cookie Policy