joola / joola.sdk

Joola's Software Development Kit (SDK)
https://joo.la
Other
3 stars 3 forks source link

Issues with visualization callbacks #141

Closed orweinberger closed 9 years ago

orweinberger commented 9 years ago

Some visualizations do not return a callback function, for example:

    var options = {
      caption: "Movie Views",
        query: {
            timeframe: 'last_30_days',
            interval: 'day',
            metrics: ['views'],
            collection: 'JoolaFlix',
            realtime: true 
        }
    };  
    $('#example').Metric(options, function(err,obj) {
      console.log(err,obj);
    });

Will not run the console.log

Another example:

    var options = {
      caption: "Movie Views",
        query: {
            timeframe: 'last_30_days',
            interval: 'day',
            dimensions: ['timestamp'],
            metrics: ['views'],
            collection: 'JoolaFlix',
            realtime: true 
        }
    };  
    $('#example').Timeline(options, function(err,obj) {
      console.log(err,obj);
    });

Will run the console.log but obj is undefined.

orweinberger commented 9 years ago

Missing the timeline commit

itayw commented 9 years ago

Resolved under another ticket #152