javascript - Showing forex rates with Shield UI Chart -
i want use shield ui chart access , visualize forex data. have figured out how ajax stuff:
$.ajax({ url: 'http://api.apirates.com/jsonp/update', datatype: 'jsonp', success: function (data) { } )
however can’t figure out how extract desired currency rates data retrieved.
the available rates returned key indexed array. can retrieved in way similar this:
data.ticks.eurusd,
and contain 1 values, returned each ajax call. can further assign many of exchange rates arrays, , pass them chart. need declare arrays:
var eurusd = new array(); , pass chart: dataseries: [ { seriestype: 'line', collectionalias: 'eur/usd', data: eurusd, } ]
Comments
Post a Comment