Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting a specific timeframe for a visualization generates an error #124

Open
orweinberger opened this issue Oct 7, 2014 · 0 comments
Open
Labels

Comments

@orweinberger
Copy link
Member

When running this query:

joola.events.on('ready', function () {
    var options = {
      caption: "Movie Views",
        query: {
            timeframe: {
              start: new Date(2014, 9, 27),
              end: new Date(2014, 9, 27, 23, 59, 59, 999)
            },
            interval: 'day',
            dimensions: ['timestamp'],
            metrics: ['views'],
            collection: 'JoolaFlix2',
            realtime: true
        }
    };  
    $('#example').Timeline(options);
});

It generates an error

Uncaught TypeError: undefined is not a function 

For these lines:

if (_query.timeframe && typeof _query.timeframe === 'object') {
    _query.timeframe.start.setHours(_query.timeframe.start.getHours() + joola.timezone(joola.options.timezoneOffset));
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant