How to use Shield UI Chart to access and visualize forex data

I want to use Shield UI Chart to access and visualize forex data. I have figured out how to do the ajax stuff:

[code]$.ajax({
url: 'http://api.apirates.com/jsonp/update',
dataType: 'jsonp',
success: function (data) {
}
)[/code]
However I can

Comments

  • The available rates are returned as key indexed array. They can be retrieved in a way similar to this:

    [code]data.ticks.EURUSD,[/code]
    and contain one values, returned by each ajax call. You can further assign as many of the exchange rates to arrays, and than pass them to the chart. You need to declare the arrays:

    [code]var EURUSD = new Array();
    and than pass it to the chart:
    dataSeries: [
    {
    seriesType: 'line',
    collectionAlias: 'EUR/USD',
    data: EURUSD,
    }
    ][/code]
  • Checkout [url= http://www.codeproject.com/Tips/617205/Using-Shield-UI-Chart-for-Showing-Live-Forex-Rates/]here [/url] tutorial for complete description how to get and show live Forex data.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion