joola / joola.sdk

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

Day interval showing incorrect data #155

Open orweinberger opened 9 years ago

orweinberger commented 9 years ago

I have the these two queries:

joola.events.on('ready', function() {
  console.log('joola ready');
  $('#timeline').Timeline({
    query: {
      timeframe: {
        start: new Date('2009-09-26'),
        end: new Date('2009-09-30')
      },
      interval: 'day',
      metrics: [{key:'size', aggregation: 'avg'}],
      dimensions: ['timestamp'],
      collection: 'blocks'
    }
  });
  $('#timeline2').Timeline({
    query: {
      timeframe: {
        start: new Date('2009-09-26'),
        end: new Date('2009-09-30')
      },
      interval: 'hour',
      metrics: [{key:'size', aggregation: 'avg'}],
      dimensions: ['timestamp'],
      collection: 'blocks'
    }
  });
});

Which produce the following two timelines, note that the first one shows 0 data for the 27th while the second one (with an hourly interval) shows that there is data for the 27th.

issue1

issue2

Live version is available here: http://codepen.io/orweinberger/pen/myPEEb

itayw commented 9 years ago

Still need to fix the above screenshot