function tickerBar() {
    var tickerInfo = [];
    fetch('https://api.coingecko.com/api/v3/search/trending').then(function(response) {
        return response.json();
    }).then(function(info) {
        for (var i = 0; i < 7; i++){
            var tickerEl = $('<div>');
            tickerEl.addClass('ticker__item');
            tickerEl.text(info.coins[i].item.name + ' - ' + info.coins[i].item.symbol + ' ');
            $('#ticker').append(tickerEl);
        }
    });
}
// ------- END Chart data and Make chart ----------- //
END Chart data and Make chart
END Chart data and Make chart
function tickerBar() {
    var tickerInfo = [];
    fetch('https://api.coingecko.com/api/v3/search/trending').then(function(response) {
        return response.json();
    }).then(function(info) {
        for (var i = 0; i < 7; i++){
            var tickerEl = $('<div>');
            tickerEl.addClass('ticker__item');
            tickerEl.text(info.coins[i].item.name + ' - ' + info.coins[i].item.symbol + ' ');
            $('#ticker').append(tickerEl);
        }
    });
}
function tickerBar ( ) { var tickerInfo = [ ] ; fetch ( 'https://api.coingecko.com/api/v3/search/trending' ) . then ( function ( response ) { return response . json ( ) ; } ) . then ( function ( info ) { for ( var i = 0 ; i < 7 ; i ++ ) { var tickerEl = $ ( '<div>' ) ; tickerEl . addClass ( 'ticker__item' ) ; tickerEl . text ( info . coins [ i ] . item . name + ' - ' + info . coins [ i ] . item . symbol + ' ' ) ; $ ( '#ticker' ) . append ( tickerEl ) ; } } ) ; }
END Chart data and Make chart
END Chart data and Make chart