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

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -