joola / joola.sdk

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

Pie chart 'limit' doesn't order by DESC before limiting #128

Open orweinberger opened 9 years ago

orweinberger commented 9 years ago
 var pie_options = {
      caption: "Movie Views",
        query: {
          timeframe: 'last_30_days',
          dimensions: ['userCountry'],
          metrics: ['views'],
          collection: 'JoolaFlix',
          limit:4,
          realtime: true 
        }
    };  
    $('#pie').Pie(pie_options);

Will limit the pie chart to 4 slices, but it will not choose the top slices according to views