diff --git a/src/lib/series/domains/x_domain.test.ts b/src/lib/series/domains/x_domain.test.ts index 195162aa84..647a009d46 100644 --- a/src/lib/series/domains/x_domain.test.ts +++ b/src/lib/series/domains/x_domain.test.ts @@ -642,4 +642,41 @@ describe('X Domain', () => { const errorMessage = 'xDomain for ordinal scale should be an array of values, not a DomainRange object'; expect(attemptToMerge).toThrowError(errorMessage); }); + + describe('should account for custom minInterval', () => { + const xValues = new Set([1, 2, 3, 4, 5]); + const specs: Pick[] = [ + { seriesType: 'bar', xScaleType: ScaleType.Linear }, + ]; + + test('with valid minInterval', () => { + const xDomain = { minInterval: 0.5 }; + const mergedDomain = mergeXDomain(specs, xValues, xDomain); + expect(mergedDomain.minInterval).toEqual(0.5); + }); + + test('with valid minInterval greater than computed minInterval for single datum set', () => { + const xDomain = { minInterval: 10 }; + const mergedDomain = mergeXDomain(specs, new Set([5]), xDomain); + expect(mergedDomain.minInterval).toEqual(10); + }); + + test('with invalid minInterval greater than computed minInterval for multi data set', () => { + const invalidXDomain = { minInterval: 10 }; + const attemptToMerge = () => { + mergeXDomain(specs, xValues, invalidXDomain); + }; + const expectedError = 'custom xDomain is invalid, custom minInterval is greater than computed minInterval'; + expect(attemptToMerge).toThrowError(expectedError); + }); + + test('with invalid minInterval less than 0', () => { + const invalidXDomain = { minInterval: -1 }; + const attemptToMerge = () => { + mergeXDomain(specs, xValues, invalidXDomain); + }; + const expectedError = 'custom xDomain is invalid, custom minInterval is less than 0'; + expect(attemptToMerge).toThrowError(expectedError); + }); + }); }); diff --git a/src/lib/series/domains/x_domain.ts b/src/lib/series/domains/x_domain.ts index 7841f1d04c..3a693eddd9 100644 --- a/src/lib/series/domains/x_domain.ts +++ b/src/lib/series/domains/x_domain.ts @@ -29,6 +29,7 @@ export function mergeXDomain( const values = [...xValues.values()]; let seriesXComputedDomains; let minInterval = 0; + if (mainXScaleType.scaleType === ScaleType.Ordinal) { seriesXComputedDomains = computeOrdinalDataDomain(values, identity, false, true); if (xDomain) { @@ -40,8 +41,16 @@ export function mergeXDomain( } } else { seriesXComputedDomains = computeContinuousDataDomain(values, identity, true); + let customMinInterval: undefined | number; + if (xDomain) { - if (!Array.isArray(xDomain)) { + if (Array.isArray(xDomain)) { + throw new Error('xDomain for continuous scale should be a DomainRange object, not an array'); + } + + customMinInterval = xDomain.minInterval; + + if (xDomain) { const [computedDomainMin, computedDomainMax] = seriesXComputedDomains; if (isCompleteBound(xDomain)) { @@ -63,11 +72,21 @@ export function mergeXDomain( seriesXComputedDomains = [computedDomainMin, xDomain.max]; } - } else { - throw new Error('xDomain for continuous scale should be a DomainRange object, not an array'); } } - minInterval = findMinInterval(values); + + const computedMinInterval = findMinInterval(values); + if (customMinInterval != null) { + // Allow greater custom min iff xValues has 1 member. + if (xValues.size > 1 && customMinInterval > computedMinInterval) { + throw new Error('custom xDomain is invalid, custom minInterval is greater than computed minInterval'); + } + if (customMinInterval < 0) { + throw new Error('custom xDomain is invalid, custom minInterval is less than 0'); + } + } + + minInterval = customMinInterval || computedMinInterval; } return { diff --git a/src/lib/series/specs.ts b/src/lib/series/specs.ts index f501a342e1..993ae85ae6 100644 --- a/src/lib/series/specs.ts +++ b/src/lib/series/specs.ts @@ -17,20 +17,34 @@ export type Datum = any; export type Rotation = 0 | 90 | -90 | 180; export type Rendering = 'canvas' | 'svg'; -export interface LowerBoundedDomain { - min: number; +interface DomainMinInterval { + /** Custom minInterval for the domain which will affect data bucket size. + * The minInterval cannot be greater than the computed minimum interval between any two adjacent data points. + * Further, if you specify a custom numeric minInterval for a timeseries, please note that due to the restriction + * above, the specified numeric minInterval will be interpreted as a fixed interval. + * This means that, for example, if you have yearly timeseries data that ranges from 2016 to 2019 and you manually + * compute the interval between 2016 and 2017, you'll have 366 days due to 2016 being a leap year. This will not + * be a valid interval because it is greater than the computed minInterval of 365 days betwen the other years. + */ + minInterval?: number; } -export interface UpperBoundedDomain { - max: number; +interface LowerBound { + /** Lower bound of domain range */ + min: number; } -export interface CompleteBoundedDomain { - min: number; +interface UpperBound { + /** Upper bound of domain range */ max: number; } -export type DomainRange = LowerBoundedDomain | UpperBoundedDomain | CompleteBoundedDomain; +export type LowerBoundedDomain = DomainMinInterval & LowerBound; +export type UpperBoundedDomain = DomainMinInterval & UpperBound; +export type CompleteBoundedDomain = DomainMinInterval & LowerBound & UpperBound; +export type UnboundedDomainWithInterval = DomainMinInterval; + +export type DomainRange = LowerBoundedDomain | UpperBoundedDomain | CompleteBoundedDomain | UnboundedDomainWithInterval; export interface DisplayValueSpec { /** Show value label in chart element */ diff --git a/src/lib/series/utils/test_dataset_discover_per_30s.ts b/src/lib/series/utils/test_dataset_discover_per_30s.ts new file mode 100644 index 0000000000..5076222027 --- /dev/null +++ b/src/lib/series/utils/test_dataset_discover_per_30s.ts @@ -0,0 +1,3559 @@ +/* eslint-disable */ + +export const TEST_DATASET_DISCOVER = { + "xAxisOrderedValues": [ + 1560438420000, + 1560438510000 + ], + "xAxisFormat": { + "id": "date", + "params": { + "pattern": "HH:mm:ss" + } + }, + "xAxisLabel": "timestamp per 30 seconds", + "ordered": { + "interval": "PT30S", + "date": true, + "min": "2019-06-13T15:00:12.206Z", + "max": "2019-06-13T15:15:12.206Z" + }, + "yAxisFormat": { + "id": "number" + }, + "yAxisLabel": "Count", + "series": [ + { + "id": "1", + "rawId": "Count-col-1-1", + "label": "Count", + "count": 0, + "values": [ + { + "x": 1560438420000, + "y": 1, + "extraMetrics": [], + "xRaw": { + "table": { + "columns": [ + { + "aggConfig": { + "id": "2", + "enabled": true, + "type": "date_histogram", + "schema": "segment", + "params": { + "field": "timestamp", + "timeRange": { + "from": { + "_isAMomentObject": true, + "_isUTC": false, + "_pf": { + "empty": false, + "unusedTokens": [], + "unusedInput": [], + "overflow": -2, + "charsLeftOver": 0, + "nullInput": false, + "invalidMonth": null, + "invalidFormat": false, + "userInvalidated": false, + "iso": false, + "parsedDateParts": [], + "meridiem": null, + "rfc2822": false, + "weekdayMismatch": false + }, + "_locale": { + "_calendar": { + "sameDay": "[Today at] LT", + "nextDay": "[Tomorrow at] LT", + "nextWeek": "dddd [at] LT", + "lastDay": "[Yesterday at] LT", + "lastWeek": "[Last] dddd [at] LT", + "sameElse": "L" + }, + "_longDateFormat": { + "LTS": "h:mm:ss A", + "LT": "h:mm A", + "L": "MM/DD/YYYY", + "LL": "MMMM D, YYYY", + "LLL": "MMMM D, YYYY h:mm A", + "LLLL": "dddd, MMMM D, YYYY h:mm A" + }, + "_invalidDate": "Invalid date", + "_dayOfMonthOrdinalParse": {}, + "_relativeTime": { + "future": "in %s", + "past": "%s ago", + "s": "a few seconds", + "ss": "%d seconds", + "m": "a minute", + "mm": "%d minutes", + "h": "an hour", + "hh": "%d hours", + "d": "a day", + "dd": "%d days", + "M": "a month", + "MM": "%d months", + "y": "a year", + "yy": "%d years" + }, + "_months": [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + "_monthsShort": [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + "_week": { + "dow": 0, + "doy": 6 + }, + "_weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "_weekdaysMin": [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa" + ], + "_weekdaysShort": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "_meridiemParse": {}, + "_abbr": "en", + "_config": { + "calendar": { + "sameDay": "[Today at] LT", + "nextDay": "[Tomorrow at] LT", + "nextWeek": "dddd [at] LT", + "lastDay": "[Yesterday at] LT", + "lastWeek": "[Last] dddd [at] LT", + "sameElse": "L" + }, + "longDateFormat": { + "LTS": "h:mm:ss A", + "LT": "h:mm A", + "L": "MM/DD/YYYY", + "LL": "MMMM D, YYYY", + "LLL": "MMMM D, YYYY h:mm A", + "LLLL": "dddd, MMMM D, YYYY h:mm A" + }, + "invalidDate": "Invalid date", + "dayOfMonthOrdinalParse": {}, + "relativeTime": { + "future": "in %s", + "past": "%s ago", + "s": "a few seconds", + "ss": "%d seconds", + "m": "a minute", + "mm": "%d minutes", + "h": "an hour", + "hh": "%d hours", + "d": "a day", + "dd": "%d days", + "M": "a month", + "MM": "%d months", + "y": "a year", + "yy": "%d years" + }, + "months": [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + "monthsShort": [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + "week": { + "dow": 0, + "doy": 6 + }, + "weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "weekdaysMin": [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa" + ], + "weekdaysShort": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "meridiemParse": {}, + "abbr": "en" + }, + "_dayOfMonthOrdinalParseLenient": {}, + "parentLocale": { + "_calendar": { + "sameDay": "[Today at] LT", + "nextDay": "[Tomorrow at] LT", + "nextWeek": "dddd [at] LT", + "lastDay": "[Yesterday at] LT", + "lastWeek": "[Last] dddd [at] LT", + "sameElse": "L" + }, + "_longDateFormat": { + "LTS": "h:mm:ss A", + "LT": "h:mm A", + "L": "MM/DD/YYYY", + "LL": "MMMM D, YYYY", + "LLL": "MMMM D, YYYY h:mm A", + "LLLL": "dddd, MMMM D, YYYY h:mm A" + }, + "_invalidDate": "Invalid date", + "_dayOfMonthOrdinalParse": {}, + "_relativeTime": { + "future": "in %s", + "past": "%s ago", + "s": "a few seconds", + "ss": "%d seconds", + "m": "a minute", + "mm": "%d minutes", + "h": "an hour", + "hh": "%d hours", + "d": "a day", + "dd": "%d days", + "M": "a month", + "MM": "%d months", + "y": "a year", + "yy": "%d years" + }, + "_months": [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + "_monthsShort": [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + "_week": { + "dow": 0, + "doy": 6 + }, + "_weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "_weekdaysMin": [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa" + ], + "_weekdaysShort": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "_meridiemParse": {}, + "_abbr": "en", + "_config": { + "calendar": { + "sameDay": "[Today at] LT", + "nextDay": "[Tomorrow at] LT", + "nextWeek": "dddd [at] LT", + "lastDay": "[Yesterday at] LT", + "lastWeek": "[Last] dddd [at] LT", + "sameElse": "L" + }, + "longDateFormat": { + "LTS": "h:mm:ss A", + "LT": "h:mm A", + "L": "MM/DD/YYYY", + "LL": "MMMM D, YYYY", + "LLL": "MMMM D, YYYY h:mm A", + "LLLL": "dddd, MMMM D, YYYY h:mm A" + }, + "invalidDate": "Invalid date", + "dayOfMonthOrdinalParse": {}, + "relativeTime": { + "future": "in %s", + "past": "%s ago", + "s": "a few seconds", + "ss": "%d seconds", + "m": "a minute", + "mm": "%d minutes", + "h": "an hour", + "hh": "%d hours", + "d": "a day", + "dd": "%d days", + "M": "a month", + "MM": "%d months", + "y": "a year", + "yy": "%d years" + }, + "months": [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + "monthsShort": [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + "week": { + "dow": 0, + "doy": 6 + }, + "weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "weekdaysMin": [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa" + ], + "weekdaysShort": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "meridiemParse": {}, + "abbr": "en" + }, + "_dayOfMonthOrdinalParseLenient": {} + } + }, + "_d": "2019-06-13T15:00:12.206Z", + "_isValid": true, + "_z": null + }, + "to": { + "_isAMomentObject": true, + "_isUTC": false, + "_pf": { + "empty": false, + "unusedTokens": [], + "unusedInput": [], + "overflow": -2, + "charsLeftOver": 0, + "nullInput": false, + "invalidMonth": null, + "invalidFormat": false, + "userInvalidated": false, + "iso": false, + "parsedDateParts": [], + "meridiem": null, + "rfc2822": false, + "weekdayMismatch": false + }, + "_locale": { + "_calendar": { + "sameDay": "[Today at] LT", + "nextDay": "[Tomorrow at] LT", + "nextWeek": "dddd [at] LT", + "lastDay": "[Yesterday at] LT", + "lastWeek": "[Last] dddd [at] LT", + "sameElse": "L" + }, + "_longDateFormat": { + "LTS": "h:mm:ss A", + "LT": "h:mm A", + "L": "MM/DD/YYYY", + "LL": "MMMM D, YYYY", + "LLL": "MMMM D, YYYY h:mm A", + "LLLL": "dddd, MMMM D, YYYY h:mm A" + }, + "_invalidDate": "Invalid date", + "_dayOfMonthOrdinalParse": {}, + "_relativeTime": { + "future": "in %s", + "past": "%s ago", + "s": "a few seconds", + "ss": "%d seconds", + "m": "a minute", + "mm": "%d minutes", + "h": "an hour", + "hh": "%d hours", + "d": "a day", + "dd": "%d days", + "M": "a month", + "MM": "%d months", + "y": "a year", + "yy": "%d years" + }, + "_months": [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + "_monthsShort": [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + "_week": { + "dow": 0, + "doy": 6 + }, + "_weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "_weekdaysMin": [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa" + ], + "_weekdaysShort": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "_meridiemParse": {}, + "_abbr": "en", + "_config": { + "calendar": { + "sameDay": "[Today at] LT", + "nextDay": "[Tomorrow at] LT", + "nextWeek": "dddd [at] LT", + "lastDay": "[Yesterday at] LT", + "lastWeek": "[Last] dddd [at] LT", + "sameElse": "L" + }, + "longDateFormat": { + "LTS": "h:mm:ss A", + "LT": "h:mm A", + "L": "MM/DD/YYYY", + "LL": "MMMM D, YYYY", + "LLL": "MMMM D, YYYY h:mm A", + "LLLL": "dddd, MMMM D, YYYY h:mm A" + }, + "invalidDate": "Invalid date", + "dayOfMonthOrdinalParse": {}, + "relativeTime": { + "future": "in %s", + "past": "%s ago", + "s": "a few seconds", + "ss": "%d seconds", + "m": "a minute", + "mm": "%d minutes", + "h": "an hour", + "hh": "%d hours", + "d": "a day", + "dd": "%d days", + "M": "a month", + "MM": "%d months", + "y": "a year", + "yy": "%d years" + }, + "months": [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + "monthsShort": [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + "week": { + "dow": 0, + "doy": 6 + }, + "weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "weekdaysMin": [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa" + ], + "weekdaysShort": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "meridiemParse": {}, + "abbr": "en" + }, + "_dayOfMonthOrdinalParseLenient": {}, + "parentLocale": { + "_calendar": { + "sameDay": "[Today at] LT", + "nextDay": "[Tomorrow at] LT", + "nextWeek": "dddd [at] LT", + "lastDay": "[Yesterday at] LT", + "lastWeek": "[Last] dddd [at] LT", + "sameElse": "L" + }, + "_longDateFormat": { + "LTS": "h:mm:ss A", + "LT": "h:mm A", + "L": "MM/DD/YYYY", + "LL": "MMMM D, YYYY", + "LLL": "MMMM D, YYYY h:mm A", + "LLLL": "dddd, MMMM D, YYYY h:mm A" + }, + "_invalidDate": "Invalid date", + "_dayOfMonthOrdinalParse": {}, + "_relativeTime": { + "future": "in %s", + "past": "%s ago", + "s": "a few seconds", + "ss": "%d seconds", + "m": "a minute", + "mm": "%d minutes", + "h": "an hour", + "hh": "%d hours", + "d": "a day", + "dd": "%d days", + "M": "a month", + "MM": "%d months", + "y": "a year", + "yy": "%d years" + }, + "_months": [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + "_monthsShort": [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + "_week": { + "dow": 0, + "doy": 6 + }, + "_weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "_weekdaysMin": [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa" + ], + "_weekdaysShort": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "_meridiemParse": {}, + "_abbr": "en", + "_config": { + "calendar": { + "sameDay": "[Today at] LT", + "nextDay": "[Tomorrow at] LT", + "nextWeek": "dddd [at] LT", + "lastDay": "[Yesterday at] LT", + "lastWeek": "[Last] dddd [at] LT", + "sameElse": "L" + }, + "longDateFormat": { + "LTS": "h:mm:ss A", + "LT": "h:mm A", + "L": "MM/DD/YYYY", + "LL": "MMMM D, YYYY", + "LLL": "MMMM D, YYYY h:mm A", + "LLLL": "dddd, MMMM D, YYYY h:mm A" + }, + "invalidDate": "Invalid date", + "dayOfMonthOrdinalParse": {}, + "relativeTime": { + "future": "in %s", + "past": "%s ago", + "s": "a few seconds", + "ss": "%d seconds", + "m": "a minute", + "mm": "%d minutes", + "h": "an hour", + "hh": "%d hours", + "d": "a day", + "dd": "%d days", + "M": "a month", + "MM": "%d months", + "y": "a year", + "yy": "%d years" + }, + "months": [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + "monthsShort": [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + "week": { + "dow": 0, + "doy": 6 + }, + "weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "weekdaysMin": [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa" + ], + "weekdaysShort": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "meridiemParse": {}, + "abbr": "en" + }, + "_dayOfMonthOrdinalParseLenient": {} + } + }, + "_d": "2019-06-13T15:15:12.206Z", + "_isValid": true, + "_z": null + } + }, + "useNormalizedEsInterval": true, + "interval": "auto", + "drop_partials": false, + "min_doc_count": 1, + "extended_bounds": {} + } + }, + "id": "col-0-2", + "name": "timestamp per 30 seconds" + }, + { + "aggConfig": { + "id": "1", + "enabled": true, + "type": "count", + "schema": "metric", + "params": {} + }, + "id": "col-1-1", + "name": "Count" + } + ], + "rows": [ + { + "col-0-2": 1560438420000, + "col-1-1": 1 + }, + { + "col-0-2": 1560438510000, + "col-1-1": 1 + } + ] + }, + "column": 0, + "row": 0, + "value": 1560438420000 + }, + "yRaw": { + "table": { + "columns": [ + { + "aggConfig": { + "id": "2", + "enabled": true, + "type": "date_histogram", + "schema": "segment", + "params": { + "field": "timestamp", + "timeRange": { + "from": { + "_isAMomentObject": true, + "_isUTC": false, + "_pf": { + "empty": false, + "unusedTokens": [], + "unusedInput": [], + "overflow": -2, + "charsLeftOver": 0, + "nullInput": false, + "invalidMonth": null, + "invalidFormat": false, + "userInvalidated": false, + "iso": false, + "parsedDateParts": [], + "meridiem": null, + "rfc2822": false, + "weekdayMismatch": false + }, + "_locale": { + "_calendar": { + "sameDay": "[Today at] LT", + "nextDay": "[Tomorrow at] LT", + "nextWeek": "dddd [at] LT", + "lastDay": "[Yesterday at] LT", + "lastWeek": "[Last] dddd [at] LT", + "sameElse": "L" + }, + "_longDateFormat": { + "LTS": "h:mm:ss A", + "LT": "h:mm A", + "L": "MM/DD/YYYY", + "LL": "MMMM D, YYYY", + "LLL": "MMMM D, YYYY h:mm A", + "LLLL": "dddd, MMMM D, YYYY h:mm A" + }, + "_invalidDate": "Invalid date", + "_dayOfMonthOrdinalParse": {}, + "_relativeTime": { + "future": "in %s", + "past": "%s ago", + "s": "a few seconds", + "ss": "%d seconds", + "m": "a minute", + "mm": "%d minutes", + "h": "an hour", + "hh": "%d hours", + "d": "a day", + "dd": "%d days", + "M": "a month", + "MM": "%d months", + "y": "a year", + "yy": "%d years" + }, + "_months": [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + "_monthsShort": [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + "_week": { + "dow": 0, + "doy": 6 + }, + "_weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "_weekdaysMin": [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa" + ], + "_weekdaysShort": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "_meridiemParse": {}, + "_abbr": "en", + "_config": { + "calendar": { + "sameDay": "[Today at] LT", + "nextDay": "[Tomorrow at] LT", + "nextWeek": "dddd [at] LT", + "lastDay": "[Yesterday at] LT", + "lastWeek": "[Last] dddd [at] LT", + "sameElse": "L" + }, + "longDateFormat": { + "LTS": "h:mm:ss A", + "LT": "h:mm A", + "L": "MM/DD/YYYY", + "LL": "MMMM D, YYYY", + "LLL": "MMMM D, YYYY h:mm A", + "LLLL": "dddd, MMMM D, YYYY h:mm A" + }, + "invalidDate": "Invalid date", + "dayOfMonthOrdinalParse": {}, + "relativeTime": { + "future": "in %s", + "past": "%s ago", + "s": "a few seconds", + "ss": "%d seconds", + "m": "a minute", + "mm": "%d minutes", + "h": "an hour", + "hh": "%d hours", + "d": "a day", + "dd": "%d days", + "M": "a month", + "MM": "%d months", + "y": "a year", + "yy": "%d years" + }, + "months": [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + "monthsShort": [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + "week": { + "dow": 0, + "doy": 6 + }, + "weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "weekdaysMin": [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa" + ], + "weekdaysShort": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "meridiemParse": {}, + "abbr": "en" + }, + "_dayOfMonthOrdinalParseLenient": {}, + "parentLocale": { + "_calendar": { + "sameDay": "[Today at] LT", + "nextDay": "[Tomorrow at] LT", + "nextWeek": "dddd [at] LT", + "lastDay": "[Yesterday at] LT", + "lastWeek": "[Last] dddd [at] LT", + "sameElse": "L" + }, + "_longDateFormat": { + "LTS": "h:mm:ss A", + "LT": "h:mm A", + "L": "MM/DD/YYYY", + "LL": "MMMM D, YYYY", + "LLL": "MMMM D, YYYY h:mm A", + "LLLL": "dddd, MMMM D, YYYY h:mm A" + }, + "_invalidDate": "Invalid date", + "_dayOfMonthOrdinalParse": {}, + "_relativeTime": { + "future": "in %s", + "past": "%s ago", + "s": "a few seconds", + "ss": "%d seconds", + "m": "a minute", + "mm": "%d minutes", + "h": "an hour", + "hh": "%d hours", + "d": "a day", + "dd": "%d days", + "M": "a month", + "MM": "%d months", + "y": "a year", + "yy": "%d years" + }, + "_months": [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + "_monthsShort": [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + "_week": { + "dow": 0, + "doy": 6 + }, + "_weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "_weekdaysMin": [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa" + ], + "_weekdaysShort": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "_meridiemParse": {}, + "_abbr": "en", + "_config": { + "calendar": { + "sameDay": "[Today at] LT", + "nextDay": "[Tomorrow at] LT", + "nextWeek": "dddd [at] LT", + "lastDay": "[Yesterday at] LT", + "lastWeek": "[Last] dddd [at] LT", + "sameElse": "L" + }, + "longDateFormat": { + "LTS": "h:mm:ss A", + "LT": "h:mm A", + "L": "MM/DD/YYYY", + "LL": "MMMM D, YYYY", + "LLL": "MMMM D, YYYY h:mm A", + "LLLL": "dddd, MMMM D, YYYY h:mm A" + }, + "invalidDate": "Invalid date", + "dayOfMonthOrdinalParse": {}, + "relativeTime": { + "future": "in %s", + "past": "%s ago", + "s": "a few seconds", + "ss": "%d seconds", + "m": "a minute", + "mm": "%d minutes", + "h": "an hour", + "hh": "%d hours", + "d": "a day", + "dd": "%d days", + "M": "a month", + "MM": "%d months", + "y": "a year", + "yy": "%d years" + }, + "months": [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + "monthsShort": [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + "week": { + "dow": 0, + "doy": 6 + }, + "weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "weekdaysMin": [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa" + ], + "weekdaysShort": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "meridiemParse": {}, + "abbr": "en" + }, + "_dayOfMonthOrdinalParseLenient": {} + } + }, + "_d": "2019-06-13T15:00:12.206Z", + "_isValid": true, + "_z": null + }, + "to": { + "_isAMomentObject": true, + "_isUTC": false, + "_pf": { + "empty": false, + "unusedTokens": [], + "unusedInput": [], + "overflow": -2, + "charsLeftOver": 0, + "nullInput": false, + "invalidMonth": null, + "invalidFormat": false, + "userInvalidated": false, + "iso": false, + "parsedDateParts": [], + "meridiem": null, + "rfc2822": false, + "weekdayMismatch": false + }, + "_locale": { + "_calendar": { + "sameDay": "[Today at] LT", + "nextDay": "[Tomorrow at] LT", + "nextWeek": "dddd [at] LT", + "lastDay": "[Yesterday at] LT", + "lastWeek": "[Last] dddd [at] LT", + "sameElse": "L" + }, + "_longDateFormat": { + "LTS": "h:mm:ss A", + "LT": "h:mm A", + "L": "MM/DD/YYYY", + "LL": "MMMM D, YYYY", + "LLL": "MMMM D, YYYY h:mm A", + "LLLL": "dddd, MMMM D, YYYY h:mm A" + }, + "_invalidDate": "Invalid date", + "_dayOfMonthOrdinalParse": {}, + "_relativeTime": { + "future": "in %s", + "past": "%s ago", + "s": "a few seconds", + "ss": "%d seconds", + "m": "a minute", + "mm": "%d minutes", + "h": "an hour", + "hh": "%d hours", + "d": "a day", + "dd": "%d days", + "M": "a month", + "MM": "%d months", + "y": "a year", + "yy": "%d years" + }, + "_months": [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + "_monthsShort": [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + "_week": { + "dow": 0, + "doy": 6 + }, + "_weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "_weekdaysMin": [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa" + ], + "_weekdaysShort": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "_meridiemParse": {}, + "_abbr": "en", + "_config": { + "calendar": { + "sameDay": "[Today at] LT", + "nextDay": "[Tomorrow at] LT", + "nextWeek": "dddd [at] LT", + "lastDay": "[Yesterday at] LT", + "lastWeek": "[Last] dddd [at] LT", + "sameElse": "L" + }, + "longDateFormat": { + "LTS": "h:mm:ss A", + "LT": "h:mm A", + "L": "MM/DD/YYYY", + "LL": "MMMM D, YYYY", + "LLL": "MMMM D, YYYY h:mm A", + "LLLL": "dddd, MMMM D, YYYY h:mm A" + }, + "invalidDate": "Invalid date", + "dayOfMonthOrdinalParse": {}, + "relativeTime": { + "future": "in %s", + "past": "%s ago", + "s": "a few seconds", + "ss": "%d seconds", + "m": "a minute", + "mm": "%d minutes", + "h": "an hour", + "hh": "%d hours", + "d": "a day", + "dd": "%d days", + "M": "a month", + "MM": "%d months", + "y": "a year", + "yy": "%d years" + }, + "months": [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + "monthsShort": [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + "week": { + "dow": 0, + "doy": 6 + }, + "weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "weekdaysMin": [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa" + ], + "weekdaysShort": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "meridiemParse": {}, + "abbr": "en" + }, + "_dayOfMonthOrdinalParseLenient": {}, + "parentLocale": { + "_calendar": { + "sameDay": "[Today at] LT", + "nextDay": "[Tomorrow at] LT", + "nextWeek": "dddd [at] LT", + "lastDay": "[Yesterday at] LT", + "lastWeek": "[Last] dddd [at] LT", + "sameElse": "L" + }, + "_longDateFormat": { + "LTS": "h:mm:ss A", + "LT": "h:mm A", + "L": "MM/DD/YYYY", + "LL": "MMMM D, YYYY", + "LLL": "MMMM D, YYYY h:mm A", + "LLLL": "dddd, MMMM D, YYYY h:mm A" + }, + "_invalidDate": "Invalid date", + "_dayOfMonthOrdinalParse": {}, + "_relativeTime": { + "future": "in %s", + "past": "%s ago", + "s": "a few seconds", + "ss": "%d seconds", + "m": "a minute", + "mm": "%d minutes", + "h": "an hour", + "hh": "%d hours", + "d": "a day", + "dd": "%d days", + "M": "a month", + "MM": "%d months", + "y": "a year", + "yy": "%d years" + }, + "_months": [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + "_monthsShort": [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + "_week": { + "dow": 0, + "doy": 6 + }, + "_weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "_weekdaysMin": [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa" + ], + "_weekdaysShort": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "_meridiemParse": {}, + "_abbr": "en", + "_config": { + "calendar": { + "sameDay": "[Today at] LT", + "nextDay": "[Tomorrow at] LT", + "nextWeek": "dddd [at] LT", + "lastDay": "[Yesterday at] LT", + "lastWeek": "[Last] dddd [at] LT", + "sameElse": "L" + }, + "longDateFormat": { + "LTS": "h:mm:ss A", + "LT": "h:mm A", + "L": "MM/DD/YYYY", + "LL": "MMMM D, YYYY", + "LLL": "MMMM D, YYYY h:mm A", + "LLLL": "dddd, MMMM D, YYYY h:mm A" + }, + "invalidDate": "Invalid date", + "dayOfMonthOrdinalParse": {}, + "relativeTime": { + "future": "in %s", + "past": "%s ago", + "s": "a few seconds", + "ss": "%d seconds", + "m": "a minute", + "mm": "%d minutes", + "h": "an hour", + "hh": "%d hours", + "d": "a day", + "dd": "%d days", + "M": "a month", + "MM": "%d months", + "y": "a year", + "yy": "%d years" + }, + "months": [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + "monthsShort": [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + "week": { + "dow": 0, + "doy": 6 + }, + "weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "weekdaysMin": [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa" + ], + "weekdaysShort": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "meridiemParse": {}, + "abbr": "en" + }, + "_dayOfMonthOrdinalParseLenient": {} + } + }, + "_d": "2019-06-13T15:15:12.206Z", + "_isValid": true, + "_z": null + } + }, + "useNormalizedEsInterval": true, + "interval": "auto", + "drop_partials": false, + "min_doc_count": 1, + "extended_bounds": {} + } + }, + "id": "col-0-2", + "name": "timestamp per 30 seconds" + }, + { + "aggConfig": { + "id": "1", + "enabled": true, + "type": "count", + "schema": "metric", + "params": {} + }, + "id": "col-1-1", + "name": "Count" + } + ], + "rows": [ + { + "col-0-2": 1560438420000, + "col-1-1": 1 + }, + { + "col-0-2": 1560438510000, + "col-1-1": 1 + } + ] + }, + "column": 1, + "row": 0, + "value": 1 + }, + "parent": null, + "series": "Count", + "seriesId": "Count-col-1-1" + }, + { + "x": 1560438510000, + "y": 1, + "extraMetrics": [], + "xRaw": { + "table": { + "columns": [ + { + "aggConfig": { + "id": "2", + "enabled": true, + "type": "date_histogram", + "schema": "segment", + "params": { + "field": "timestamp", + "timeRange": { + "from": { + "_isAMomentObject": true, + "_isUTC": false, + "_pf": { + "empty": false, + "unusedTokens": [], + "unusedInput": [], + "overflow": -2, + "charsLeftOver": 0, + "nullInput": false, + "invalidMonth": null, + "invalidFormat": false, + "userInvalidated": false, + "iso": false, + "parsedDateParts": [], + "meridiem": null, + "rfc2822": false, + "weekdayMismatch": false + }, + "_locale": { + "_calendar": { + "sameDay": "[Today at] LT", + "nextDay": "[Tomorrow at] LT", + "nextWeek": "dddd [at] LT", + "lastDay": "[Yesterday at] LT", + "lastWeek": "[Last] dddd [at] LT", + "sameElse": "L" + }, + "_longDateFormat": { + "LTS": "h:mm:ss A", + "LT": "h:mm A", + "L": "MM/DD/YYYY", + "LL": "MMMM D, YYYY", + "LLL": "MMMM D, YYYY h:mm A", + "LLLL": "dddd, MMMM D, YYYY h:mm A" + }, + "_invalidDate": "Invalid date", + "_dayOfMonthOrdinalParse": {}, + "_relativeTime": { + "future": "in %s", + "past": "%s ago", + "s": "a few seconds", + "ss": "%d seconds", + "m": "a minute", + "mm": "%d minutes", + "h": "an hour", + "hh": "%d hours", + "d": "a day", + "dd": "%d days", + "M": "a month", + "MM": "%d months", + "y": "a year", + "yy": "%d years" + }, + "_months": [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + "_monthsShort": [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + "_week": { + "dow": 0, + "doy": 6 + }, + "_weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "_weekdaysMin": [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa" + ], + "_weekdaysShort": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "_meridiemParse": {}, + "_abbr": "en", + "_config": { + "calendar": { + "sameDay": "[Today at] LT", + "nextDay": "[Tomorrow at] LT", + "nextWeek": "dddd [at] LT", + "lastDay": "[Yesterday at] LT", + "lastWeek": "[Last] dddd [at] LT", + "sameElse": "L" + }, + "longDateFormat": { + "LTS": "h:mm:ss A", + "LT": "h:mm A", + "L": "MM/DD/YYYY", + "LL": "MMMM D, YYYY", + "LLL": "MMMM D, YYYY h:mm A", + "LLLL": "dddd, MMMM D, YYYY h:mm A" + }, + "invalidDate": "Invalid date", + "dayOfMonthOrdinalParse": {}, + "relativeTime": { + "future": "in %s", + "past": "%s ago", + "s": "a few seconds", + "ss": "%d seconds", + "m": "a minute", + "mm": "%d minutes", + "h": "an hour", + "hh": "%d hours", + "d": "a day", + "dd": "%d days", + "M": "a month", + "MM": "%d months", + "y": "a year", + "yy": "%d years" + }, + "months": [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + "monthsShort": [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + "week": { + "dow": 0, + "doy": 6 + }, + "weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "weekdaysMin": [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa" + ], + "weekdaysShort": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "meridiemParse": {}, + "abbr": "en" + }, + "_dayOfMonthOrdinalParseLenient": {}, + "parentLocale": { + "_calendar": { + "sameDay": "[Today at] LT", + "nextDay": "[Tomorrow at] LT", + "nextWeek": "dddd [at] LT", + "lastDay": "[Yesterday at] LT", + "lastWeek": "[Last] dddd [at] LT", + "sameElse": "L" + }, + "_longDateFormat": { + "LTS": "h:mm:ss A", + "LT": "h:mm A", + "L": "MM/DD/YYYY", + "LL": "MMMM D, YYYY", + "LLL": "MMMM D, YYYY h:mm A", + "LLLL": "dddd, MMMM D, YYYY h:mm A" + }, + "_invalidDate": "Invalid date", + "_dayOfMonthOrdinalParse": {}, + "_relativeTime": { + "future": "in %s", + "past": "%s ago", + "s": "a few seconds", + "ss": "%d seconds", + "m": "a minute", + "mm": "%d minutes", + "h": "an hour", + "hh": "%d hours", + "d": "a day", + "dd": "%d days", + "M": "a month", + "MM": "%d months", + "y": "a year", + "yy": "%d years" + }, + "_months": [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + "_monthsShort": [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + "_week": { + "dow": 0, + "doy": 6 + }, + "_weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "_weekdaysMin": [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa" + ], + "_weekdaysShort": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "_meridiemParse": {}, + "_abbr": "en", + "_config": { + "calendar": { + "sameDay": "[Today at] LT", + "nextDay": "[Tomorrow at] LT", + "nextWeek": "dddd [at] LT", + "lastDay": "[Yesterday at] LT", + "lastWeek": "[Last] dddd [at] LT", + "sameElse": "L" + }, + "longDateFormat": { + "LTS": "h:mm:ss A", + "LT": "h:mm A", + "L": "MM/DD/YYYY", + "LL": "MMMM D, YYYY", + "LLL": "MMMM D, YYYY h:mm A", + "LLLL": "dddd, MMMM D, YYYY h:mm A" + }, + "invalidDate": "Invalid date", + "dayOfMonthOrdinalParse": {}, + "relativeTime": { + "future": "in %s", + "past": "%s ago", + "s": "a few seconds", + "ss": "%d seconds", + "m": "a minute", + "mm": "%d minutes", + "h": "an hour", + "hh": "%d hours", + "d": "a day", + "dd": "%d days", + "M": "a month", + "MM": "%d months", + "y": "a year", + "yy": "%d years" + }, + "months": [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + "monthsShort": [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + "week": { + "dow": 0, + "doy": 6 + }, + "weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "weekdaysMin": [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa" + ], + "weekdaysShort": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "meridiemParse": {}, + "abbr": "en" + }, + "_dayOfMonthOrdinalParseLenient": {} + } + }, + "_d": "2019-06-13T15:00:12.206Z", + "_isValid": true, + "_z": null + }, + "to": { + "_isAMomentObject": true, + "_isUTC": false, + "_pf": { + "empty": false, + "unusedTokens": [], + "unusedInput": [], + "overflow": -2, + "charsLeftOver": 0, + "nullInput": false, + "invalidMonth": null, + "invalidFormat": false, + "userInvalidated": false, + "iso": false, + "parsedDateParts": [], + "meridiem": null, + "rfc2822": false, + "weekdayMismatch": false + }, + "_locale": { + "_calendar": { + "sameDay": "[Today at] LT", + "nextDay": "[Tomorrow at] LT", + "nextWeek": "dddd [at] LT", + "lastDay": "[Yesterday at] LT", + "lastWeek": "[Last] dddd [at] LT", + "sameElse": "L" + }, + "_longDateFormat": { + "LTS": "h:mm:ss A", + "LT": "h:mm A", + "L": "MM/DD/YYYY", + "LL": "MMMM D, YYYY", + "LLL": "MMMM D, YYYY h:mm A", + "LLLL": "dddd, MMMM D, YYYY h:mm A" + }, + "_invalidDate": "Invalid date", + "_dayOfMonthOrdinalParse": {}, + "_relativeTime": { + "future": "in %s", + "past": "%s ago", + "s": "a few seconds", + "ss": "%d seconds", + "m": "a minute", + "mm": "%d minutes", + "h": "an hour", + "hh": "%d hours", + "d": "a day", + "dd": "%d days", + "M": "a month", + "MM": "%d months", + "y": "a year", + "yy": "%d years" + }, + "_months": [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + "_monthsShort": [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + "_week": { + "dow": 0, + "doy": 6 + }, + "_weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "_weekdaysMin": [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa" + ], + "_weekdaysShort": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "_meridiemParse": {}, + "_abbr": "en", + "_config": { + "calendar": { + "sameDay": "[Today at] LT", + "nextDay": "[Tomorrow at] LT", + "nextWeek": "dddd [at] LT", + "lastDay": "[Yesterday at] LT", + "lastWeek": "[Last] dddd [at] LT", + "sameElse": "L" + }, + "longDateFormat": { + "LTS": "h:mm:ss A", + "LT": "h:mm A", + "L": "MM/DD/YYYY", + "LL": "MMMM D, YYYY", + "LLL": "MMMM D, YYYY h:mm A", + "LLLL": "dddd, MMMM D, YYYY h:mm A" + }, + "invalidDate": "Invalid date", + "dayOfMonthOrdinalParse": {}, + "relativeTime": { + "future": "in %s", + "past": "%s ago", + "s": "a few seconds", + "ss": "%d seconds", + "m": "a minute", + "mm": "%d minutes", + "h": "an hour", + "hh": "%d hours", + "d": "a day", + "dd": "%d days", + "M": "a month", + "MM": "%d months", + "y": "a year", + "yy": "%d years" + }, + "months": [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + "monthsShort": [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + "week": { + "dow": 0, + "doy": 6 + }, + "weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "weekdaysMin": [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa" + ], + "weekdaysShort": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "meridiemParse": {}, + "abbr": "en" + }, + "_dayOfMonthOrdinalParseLenient": {}, + "parentLocale": { + "_calendar": { + "sameDay": "[Today at] LT", + "nextDay": "[Tomorrow at] LT", + "nextWeek": "dddd [at] LT", + "lastDay": "[Yesterday at] LT", + "lastWeek": "[Last] dddd [at] LT", + "sameElse": "L" + }, + "_longDateFormat": { + "LTS": "h:mm:ss A", + "LT": "h:mm A", + "L": "MM/DD/YYYY", + "LL": "MMMM D, YYYY", + "LLL": "MMMM D, YYYY h:mm A", + "LLLL": "dddd, MMMM D, YYYY h:mm A" + }, + "_invalidDate": "Invalid date", + "_dayOfMonthOrdinalParse": {}, + "_relativeTime": { + "future": "in %s", + "past": "%s ago", + "s": "a few seconds", + "ss": "%d seconds", + "m": "a minute", + "mm": "%d minutes", + "h": "an hour", + "hh": "%d hours", + "d": "a day", + "dd": "%d days", + "M": "a month", + "MM": "%d months", + "y": "a year", + "yy": "%d years" + }, + "_months": [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + "_monthsShort": [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + "_week": { + "dow": 0, + "doy": 6 + }, + "_weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "_weekdaysMin": [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa" + ], + "_weekdaysShort": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "_meridiemParse": {}, + "_abbr": "en", + "_config": { + "calendar": { + "sameDay": "[Today at] LT", + "nextDay": "[Tomorrow at] LT", + "nextWeek": "dddd [at] LT", + "lastDay": "[Yesterday at] LT", + "lastWeek": "[Last] dddd [at] LT", + "sameElse": "L" + }, + "longDateFormat": { + "LTS": "h:mm:ss A", + "LT": "h:mm A", + "L": "MM/DD/YYYY", + "LL": "MMMM D, YYYY", + "LLL": "MMMM D, YYYY h:mm A", + "LLLL": "dddd, MMMM D, YYYY h:mm A" + }, + "invalidDate": "Invalid date", + "dayOfMonthOrdinalParse": {}, + "relativeTime": { + "future": "in %s", + "past": "%s ago", + "s": "a few seconds", + "ss": "%d seconds", + "m": "a minute", + "mm": "%d minutes", + "h": "an hour", + "hh": "%d hours", + "d": "a day", + "dd": "%d days", + "M": "a month", + "MM": "%d months", + "y": "a year", + "yy": "%d years" + }, + "months": [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + "monthsShort": [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + "week": { + "dow": 0, + "doy": 6 + }, + "weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "weekdaysMin": [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa" + ], + "weekdaysShort": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "meridiemParse": {}, + "abbr": "en" + }, + "_dayOfMonthOrdinalParseLenient": {} + } + }, + "_d": "2019-06-13T15:15:12.206Z", + "_isValid": true, + "_z": null + } + }, + "useNormalizedEsInterval": true, + "interval": "auto", + "drop_partials": false, + "min_doc_count": 1, + "extended_bounds": {} + } + }, + "id": "col-0-2", + "name": "timestamp per 30 seconds" + }, + { + "aggConfig": { + "id": "1", + "enabled": true, + "type": "count", + "schema": "metric", + "params": {} + }, + "id": "col-1-1", + "name": "Count" + } + ], + "rows": [ + { + "col-0-2": 1560438420000, + "col-1-1": 1 + }, + { + "col-0-2": 1560438510000, + "col-1-1": 1 + } + ] + }, + "column": 0, + "row": 1, + "value": 1560438510000 + }, + "yRaw": { + "table": { + "columns": [ + { + "aggConfig": { + "id": "2", + "enabled": true, + "type": "date_histogram", + "schema": "segment", + "params": { + "field": "timestamp", + "timeRange": { + "from": { + "_isAMomentObject": true, + "_isUTC": false, + "_pf": { + "empty": false, + "unusedTokens": [], + "unusedInput": [], + "overflow": -2, + "charsLeftOver": 0, + "nullInput": false, + "invalidMonth": null, + "invalidFormat": false, + "userInvalidated": false, + "iso": false, + "parsedDateParts": [], + "meridiem": null, + "rfc2822": false, + "weekdayMismatch": false + }, + "_locale": { + "_calendar": { + "sameDay": "[Today at] LT", + "nextDay": "[Tomorrow at] LT", + "nextWeek": "dddd [at] LT", + "lastDay": "[Yesterday at] LT", + "lastWeek": "[Last] dddd [at] LT", + "sameElse": "L" + }, + "_longDateFormat": { + "LTS": "h:mm:ss A", + "LT": "h:mm A", + "L": "MM/DD/YYYY", + "LL": "MMMM D, YYYY", + "LLL": "MMMM D, YYYY h:mm A", + "LLLL": "dddd, MMMM D, YYYY h:mm A" + }, + "_invalidDate": "Invalid date", + "_dayOfMonthOrdinalParse": {}, + "_relativeTime": { + "future": "in %s", + "past": "%s ago", + "s": "a few seconds", + "ss": "%d seconds", + "m": "a minute", + "mm": "%d minutes", + "h": "an hour", + "hh": "%d hours", + "d": "a day", + "dd": "%d days", + "M": "a month", + "MM": "%d months", + "y": "a year", + "yy": "%d years" + }, + "_months": [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + "_monthsShort": [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + "_week": { + "dow": 0, + "doy": 6 + }, + "_weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "_weekdaysMin": [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa" + ], + "_weekdaysShort": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "_meridiemParse": {}, + "_abbr": "en", + "_config": { + "calendar": { + "sameDay": "[Today at] LT", + "nextDay": "[Tomorrow at] LT", + "nextWeek": "dddd [at] LT", + "lastDay": "[Yesterday at] LT", + "lastWeek": "[Last] dddd [at] LT", + "sameElse": "L" + }, + "longDateFormat": { + "LTS": "h:mm:ss A", + "LT": "h:mm A", + "L": "MM/DD/YYYY", + "LL": "MMMM D, YYYY", + "LLL": "MMMM D, YYYY h:mm A", + "LLLL": "dddd, MMMM D, YYYY h:mm A" + }, + "invalidDate": "Invalid date", + "dayOfMonthOrdinalParse": {}, + "relativeTime": { + "future": "in %s", + "past": "%s ago", + "s": "a few seconds", + "ss": "%d seconds", + "m": "a minute", + "mm": "%d minutes", + "h": "an hour", + "hh": "%d hours", + "d": "a day", + "dd": "%d days", + "M": "a month", + "MM": "%d months", + "y": "a year", + "yy": "%d years" + }, + "months": [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + "monthsShort": [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + "week": { + "dow": 0, + "doy": 6 + }, + "weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "weekdaysMin": [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa" + ], + "weekdaysShort": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "meridiemParse": {}, + "abbr": "en" + }, + "_dayOfMonthOrdinalParseLenient": {}, + "parentLocale": { + "_calendar": { + "sameDay": "[Today at] LT", + "nextDay": "[Tomorrow at] LT", + "nextWeek": "dddd [at] LT", + "lastDay": "[Yesterday at] LT", + "lastWeek": "[Last] dddd [at] LT", + "sameElse": "L" + }, + "_longDateFormat": { + "LTS": "h:mm:ss A", + "LT": "h:mm A", + "L": "MM/DD/YYYY", + "LL": "MMMM D, YYYY", + "LLL": "MMMM D, YYYY h:mm A", + "LLLL": "dddd, MMMM D, YYYY h:mm A" + }, + "_invalidDate": "Invalid date", + "_dayOfMonthOrdinalParse": {}, + "_relativeTime": { + "future": "in %s", + "past": "%s ago", + "s": "a few seconds", + "ss": "%d seconds", + "m": "a minute", + "mm": "%d minutes", + "h": "an hour", + "hh": "%d hours", + "d": "a day", + "dd": "%d days", + "M": "a month", + "MM": "%d months", + "y": "a year", + "yy": "%d years" + }, + "_months": [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + "_monthsShort": [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + "_week": { + "dow": 0, + "doy": 6 + }, + "_weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "_weekdaysMin": [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa" + ], + "_weekdaysShort": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "_meridiemParse": {}, + "_abbr": "en", + "_config": { + "calendar": { + "sameDay": "[Today at] LT", + "nextDay": "[Tomorrow at] LT", + "nextWeek": "dddd [at] LT", + "lastDay": "[Yesterday at] LT", + "lastWeek": "[Last] dddd [at] LT", + "sameElse": "L" + }, + "longDateFormat": { + "LTS": "h:mm:ss A", + "LT": "h:mm A", + "L": "MM/DD/YYYY", + "LL": "MMMM D, YYYY", + "LLL": "MMMM D, YYYY h:mm A", + "LLLL": "dddd, MMMM D, YYYY h:mm A" + }, + "invalidDate": "Invalid date", + "dayOfMonthOrdinalParse": {}, + "relativeTime": { + "future": "in %s", + "past": "%s ago", + "s": "a few seconds", + "ss": "%d seconds", + "m": "a minute", + "mm": "%d minutes", + "h": "an hour", + "hh": "%d hours", + "d": "a day", + "dd": "%d days", + "M": "a month", + "MM": "%d months", + "y": "a year", + "yy": "%d years" + }, + "months": [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + "monthsShort": [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + "week": { + "dow": 0, + "doy": 6 + }, + "weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "weekdaysMin": [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa" + ], + "weekdaysShort": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "meridiemParse": {}, + "abbr": "en" + }, + "_dayOfMonthOrdinalParseLenient": {} + } + }, + "_d": "2019-06-13T15:00:12.206Z", + "_isValid": true, + "_z": null + }, + "to": { + "_isAMomentObject": true, + "_isUTC": false, + "_pf": { + "empty": false, + "unusedTokens": [], + "unusedInput": [], + "overflow": -2, + "charsLeftOver": 0, + "nullInput": false, + "invalidMonth": null, + "invalidFormat": false, + "userInvalidated": false, + "iso": false, + "parsedDateParts": [], + "meridiem": null, + "rfc2822": false, + "weekdayMismatch": false + }, + "_locale": { + "_calendar": { + "sameDay": "[Today at] LT", + "nextDay": "[Tomorrow at] LT", + "nextWeek": "dddd [at] LT", + "lastDay": "[Yesterday at] LT", + "lastWeek": "[Last] dddd [at] LT", + "sameElse": "L" + }, + "_longDateFormat": { + "LTS": "h:mm:ss A", + "LT": "h:mm A", + "L": "MM/DD/YYYY", + "LL": "MMMM D, YYYY", + "LLL": "MMMM D, YYYY h:mm A", + "LLLL": "dddd, MMMM D, YYYY h:mm A" + }, + "_invalidDate": "Invalid date", + "_dayOfMonthOrdinalParse": {}, + "_relativeTime": { + "future": "in %s", + "past": "%s ago", + "s": "a few seconds", + "ss": "%d seconds", + "m": "a minute", + "mm": "%d minutes", + "h": "an hour", + "hh": "%d hours", + "d": "a day", + "dd": "%d days", + "M": "a month", + "MM": "%d months", + "y": "a year", + "yy": "%d years" + }, + "_months": [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + "_monthsShort": [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + "_week": { + "dow": 0, + "doy": 6 + }, + "_weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "_weekdaysMin": [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa" + ], + "_weekdaysShort": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "_meridiemParse": {}, + "_abbr": "en", + "_config": { + "calendar": { + "sameDay": "[Today at] LT", + "nextDay": "[Tomorrow at] LT", + "nextWeek": "dddd [at] LT", + "lastDay": "[Yesterday at] LT", + "lastWeek": "[Last] dddd [at] LT", + "sameElse": "L" + }, + "longDateFormat": { + "LTS": "h:mm:ss A", + "LT": "h:mm A", + "L": "MM/DD/YYYY", + "LL": "MMMM D, YYYY", + "LLL": "MMMM D, YYYY h:mm A", + "LLLL": "dddd, MMMM D, YYYY h:mm A" + }, + "invalidDate": "Invalid date", + "dayOfMonthOrdinalParse": {}, + "relativeTime": { + "future": "in %s", + "past": "%s ago", + "s": "a few seconds", + "ss": "%d seconds", + "m": "a minute", + "mm": "%d minutes", + "h": "an hour", + "hh": "%d hours", + "d": "a day", + "dd": "%d days", + "M": "a month", + "MM": "%d months", + "y": "a year", + "yy": "%d years" + }, + "months": [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + "monthsShort": [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + "week": { + "dow": 0, + "doy": 6 + }, + "weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "weekdaysMin": [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa" + ], + "weekdaysShort": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "meridiemParse": {}, + "abbr": "en" + }, + "_dayOfMonthOrdinalParseLenient": {}, + "parentLocale": { + "_calendar": { + "sameDay": "[Today at] LT", + "nextDay": "[Tomorrow at] LT", + "nextWeek": "dddd [at] LT", + "lastDay": "[Yesterday at] LT", + "lastWeek": "[Last] dddd [at] LT", + "sameElse": "L" + }, + "_longDateFormat": { + "LTS": "h:mm:ss A", + "LT": "h:mm A", + "L": "MM/DD/YYYY", + "LL": "MMMM D, YYYY", + "LLL": "MMMM D, YYYY h:mm A", + "LLLL": "dddd, MMMM D, YYYY h:mm A" + }, + "_invalidDate": "Invalid date", + "_dayOfMonthOrdinalParse": {}, + "_relativeTime": { + "future": "in %s", + "past": "%s ago", + "s": "a few seconds", + "ss": "%d seconds", + "m": "a minute", + "mm": "%d minutes", + "h": "an hour", + "hh": "%d hours", + "d": "a day", + "dd": "%d days", + "M": "a month", + "MM": "%d months", + "y": "a year", + "yy": "%d years" + }, + "_months": [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + "_monthsShort": [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + "_week": { + "dow": 0, + "doy": 6 + }, + "_weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "_weekdaysMin": [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa" + ], + "_weekdaysShort": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "_meridiemParse": {}, + "_abbr": "en", + "_config": { + "calendar": { + "sameDay": "[Today at] LT", + "nextDay": "[Tomorrow at] LT", + "nextWeek": "dddd [at] LT", + "lastDay": "[Yesterday at] LT", + "lastWeek": "[Last] dddd [at] LT", + "sameElse": "L" + }, + "longDateFormat": { + "LTS": "h:mm:ss A", + "LT": "h:mm A", + "L": "MM/DD/YYYY", + "LL": "MMMM D, YYYY", + "LLL": "MMMM D, YYYY h:mm A", + "LLLL": "dddd, MMMM D, YYYY h:mm A" + }, + "invalidDate": "Invalid date", + "dayOfMonthOrdinalParse": {}, + "relativeTime": { + "future": "in %s", + "past": "%s ago", + "s": "a few seconds", + "ss": "%d seconds", + "m": "a minute", + "mm": "%d minutes", + "h": "an hour", + "hh": "%d hours", + "d": "a day", + "dd": "%d days", + "M": "a month", + "MM": "%d months", + "y": "a year", + "yy": "%d years" + }, + "months": [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + "monthsShort": [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + "week": { + "dow": 0, + "doy": 6 + }, + "weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "weekdaysMin": [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa" + ], + "weekdaysShort": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "meridiemParse": {}, + "abbr": "en" + }, + "_dayOfMonthOrdinalParseLenient": {} + } + }, + "_d": "2019-06-13T15:15:12.206Z", + "_isValid": true, + "_z": null + } + }, + "useNormalizedEsInterval": true, + "interval": "auto", + "drop_partials": false, + "min_doc_count": 1, + "extended_bounds": {} + } + }, + "id": "col-0-2", + "name": "timestamp per 30 seconds" + }, + { + "aggConfig": { + "id": "1", + "enabled": true, + "type": "count", + "schema": "metric", + "params": {} + }, + "id": "col-1-1", + "name": "Count" + } + ], + "rows": [ + { + "col-0-2": 1560438420000, + "col-1-1": 1 + }, + { + "col-0-2": 1560438510000, + "col-1-1": 1 + } + ] + }, + "column": 1, + "row": 1, + "value": 1 + }, + "parent": null, + "series": "Count", + "seriesId": "Count-col-1-1" + } + ], + "format": { + "id": "number" + } + } + ], + "hits": 2 +} \ No newline at end of file diff --git a/stories/bar_chart.tsx b/stories/bar_chart.tsx index c8b7664c81..c7f5700431 100644 --- a/stories/bar_chart.tsx +++ b/stories/bar_chart.tsx @@ -33,6 +33,8 @@ import * as TestDatasets from '../src/lib/series/utils/test_dataset'; import { KIBANA_METRICS } from '../src/lib/series/utils/test_dataset_kibana'; +import { TEST_DATASET_DISCOVER } from '../src/lib/series/utils/test_dataset_discover_per_30s'; + const dateFormatter = timeFormatter('HH:mm:ss'); const dataGen = new DataGenerator(); @@ -1530,6 +1532,45 @@ storiesOf('Bar Chart', module) ); }) + .add('[test] discover', () => { + const data = TEST_DATASET_DISCOVER.series[0].values; + + const formatter = timeFormatter(niceTimeFormatByDay(1)); + + const xDomain = { + minInterval: 30000, + }; + + const useCustomMinInterval = boolean('use custom minInterval of 30s', true); + + return ( + + + + + + + + ); + }) .add('stacked only grouped areas', () => { const data1 = [[1, 2], [2, 2], [3, 3], [4, 5], [5, 5], [6, 3], [7, 8], [8, 2], [9, 1]]; const data2 = [[1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 4], [7, 3], [8, 2], [9, 4]];