UNPKG

@attivio/suit

Version:

Attivio SUIT, the Search UI Toolkit, is a library for creating search clients for searching the Attivio platform.

29 lines (20 loc) 817 B
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } /** * A single point of data in a time-based series. */ var DataPoint = function () { function DataPoint(startTime, endTime, data) { _classCallCheck(this, DataPoint); this.startTime = startTime; this.endTime = endTime; this.data = data; } DataPoint.fromJson = function fromJson(json) { return new DataPoint(json.startTime || 0, json.endTime || 0, json.data || 0); }; /** The start of the range the data point covers. */ /** The end of the range the data point covers. */ /** The value of the data point. If there is no data for this time, this will be null. */ return DataPoint; }(); export { DataPoint as default };