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

TimeSeriesData.range() method returns incorrect value #132

Open
jtiscione opened this issue Feb 6, 2019 · 0 comments
Open

TimeSeriesData.range() method returns incorrect value #132

jtiscione opened this issue Feb 6, 2019 · 0 comments

Comments

@jtiscione
Copy link

Have this code:

const data = {
  name: 'title',
  columns: [ 'index', 'foo', 'bar', 'baz' ],
  points: [
      [ '2019-02-06T04:39:00.000Z', 14, 22, 15 ],
      [ '2019-02-06T04:40:00.000Z', 29, 19, 11 ],
      [ '2019-02-06T04:41:00.000Z', 23, 21, 13 ],
      [ '2019-02-06T04:42:00.000Z', 18, 20, 19 ]
  ]
};
const series = new TimeSeriesData(data);
console.log(series.range())

This should print out a range of four minutes, but returns 24 hours.
List [ Tue Feb 05 2019 17:00:00 GMT-0700 (Mountain Standard Time), Wed Feb 06 2019 16:59:59 GMT-0700 (Mountain Standard Time) ] }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant