Skip to content

Day interval showing incorrect data #155

Description

@orweinberger

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions