blinktrade / frontend-legacy

GNU General Public License v3.0
121 stars 182 forks source link

Corrigir gráfico #219

Open schiavonxv opened 7 years ago

schiavonxv commented 7 years ago

O TradingView está bloqueando iFrame.

Agora é necessário usar o widget deles.

O novo código é:

<script type="text/javascript" src="https://s3.amazonaws.com/tradingview/tv.js"></script>
<script type="text/javascript">

new TradingView.widget({
     "width": 800,
    "height": 600,
    "symbol": "FOXBIT:BTCBRL",
    "interval": "240",
    "timezone": "exchange",
    "theme": "White",
    "toolbar_bg": "#f4f7f9",
    "hide_side_toolbar": false,
    "watchlist": [
    "BITFINEX:BTCUSD",
    "OKCOIN:BTCCNY"
    ],
    "details": true,
    "locale": "pt",
    "hideideas": true
});

</script>

Só trocar o width e height pelo tamanho ou usar autosize: true.

amalrik commented 7 years ago

This can be closed. Its fixed on master