画面起動までの手順
- ここから「ライブラリのダウンロード」ボタンをクリックして、認証情報を登録
- 2、3日待機する
- 認証情報申請時に登録したGitHubのプロフィールに紐づいたメールアドレスに登録完了の知らせが届いた後、任意のフォルダで下記のコマンドを実行する
git clone https://github.com/tradingview/charting_library
- 3のフォルダの場所でhttp serverを起動する(下記はPython3を使った例)
python3 -m http.server
画面をみる方法
上記手順完了後、下記のURLにブラウザからアクセスする
http://localhost:8000/index.html
http://localhost:8000/intro.html
http://localhost:8000/mobile_black.html
http://localhost:8000/mobile_white.html
http://localhost:8000/test.html
動作概要
JQuery、charting_library.min.js、datafeed.jsを取り込み、「TradingView.onready」で「TradingView.widget」を実行するとチャートが起動する(index.html:26〜46行目)
Version 1.11以降はJQueryが必要なくなる予定。