Skip to content

TimeSeriesData.range() method returns incorrect value #132

Open
@jtiscione

Description

@jtiscione

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) ] }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions