')
.attr('id', 'vislib-vis-fixtures')
@@ -72,17 +69,6 @@ const getDeps = () => {
};
};
-export const getMockUiState = () => {
- const map = new Map();
-
- return (() => ({
- get: (...args) => map.get(...args),
- set: (...args) => map.set(...args),
- setSilent: (...args) => map.set(...args),
- on: () => undefined,
- }))();
-};
-
export function getVis(visLibParams, element) {
return new Vis(
element || $visCanvas.new(),
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/chart_title.js b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/lib/chart_title.js
similarity index 91%
rename from src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/chart_title.js
rename to src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/lib/chart_title.js
index b65571becd83c..81fef155daf57 100644
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/chart_title.js
+++ b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/lib/chart_title.js
@@ -21,9 +21,9 @@ import d3 from 'd3';
import _ from 'lodash';
import expect from '@kbn/expect';
-import { ChartTitle } from '../../lib/chart_title';
-import { VisConfig } from '../../lib/vis_config';
-import { getMockUiState } from './fixtures/_vis_fixture';
+import { ChartTitle } from '../../../../../../../plugins/vis_type_vislib/public/vislib/lib/chart_title';
+import { VisConfig } from '../../../../../../../plugins/vis_type_vislib/public/vislib/lib/vis_config';
+import { getMockUiState } from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mocks';
describe('Vislib ChartTitle Class Test Suite', function() {
let mockUiState;
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/dispatch.js b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/lib/dispatch.js
similarity index 96%
rename from src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/dispatch.js
rename to src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/lib/dispatch.js
index a5d8eb80419a1..eb4e109690c37 100644
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/dispatch.js
+++ b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/lib/dispatch.js
@@ -22,9 +22,10 @@ import d3 from 'd3';
import expect from '@kbn/expect';
// Data
-import data from './fixtures/mock_data/date_histogram/_series';
+import data from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series';
-import { getVis, getMockUiState } from './fixtures/_vis_fixture';
+import { getMockUiState } from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mocks';
+import { getVis } from '../_vis_fixture';
describe('Vislib Dispatch Class Test Suite', function() {
function destroyVis(vis) {
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/handler/handler.js b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/lib/handler/handler.js
similarity index 86%
rename from src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/handler/handler.js
rename to src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/lib/handler/handler.js
index 8e25015c10186..27f7f4ed3e073 100644
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/handler/handler.js
+++ b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/lib/handler/handler.js
@@ -21,12 +21,12 @@ import expect from '@kbn/expect';
import $ from 'jquery';
// Data
-import series from '../fixtures/mock_data/date_histogram/_series';
-import columns from '../fixtures/mock_data/date_histogram/_columns';
-import rows from '../fixtures/mock_data/date_histogram/_rows';
-import stackedSeries from '../fixtures/mock_data/date_histogram/_stacked_series';
-
-import { getVis, getMockUiState } from '../fixtures/_vis_fixture';
+import series from '../../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series';
+import columns from '../../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_columns';
+import rows from '../../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_rows';
+import stackedSeries from '../../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_stacked_series';
+import { getMockUiState } from '../../../../../../../../plugins/vis_type_vislib/public/fixtures/mocks';
+import { getVis } from '../../_vis_fixture';
const dateHistogramArray = [series, columns, rows, stackedSeries];
const names = ['series', 'columns', 'rows', 'stackedSeries'];
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/layout/layout.js b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/lib/layout/layout.js
similarity index 85%
rename from src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/layout/layout.js
rename to src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/lib/layout/layout.js
index f72794e27e834..505b0a04c6183 100644
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/layout/layout.js
+++ b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/lib/layout/layout.js
@@ -22,14 +22,14 @@ import expect from '@kbn/expect';
import $ from 'jquery';
// Data
-import series from '../fixtures/mock_data/date_histogram/_series';
-import columns from '../fixtures/mock_data/date_histogram/_columns';
-import rows from '../fixtures/mock_data/date_histogram/_rows';
-import stackedSeries from '../fixtures/mock_data/date_histogram/_stacked_series';
-
-import { Layout } from '../../../lib/layout/layout';
-import { getVis, getMockUiState } from '../fixtures/_vis_fixture';
-import { VisConfig } from '../../../lib/vis_config';
+import series from '../../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series';
+import columns from '../../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_columns';
+import rows from '../../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_rows';
+import stackedSeries from '../../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_stacked_series';
+import { getMockUiState } from '../../../../../../../../plugins/vis_type_vislib/public/fixtures/mocks';
+import { Layout } from '../../../../../../../../plugins/vis_type_vislib/public/vislib/lib/layout/layout';
+import { VisConfig } from '../../../../../../../../plugins/vis_type_vislib/public/vislib/lib/vis_config';
+import { getVis } from '../../_vis_fixture';
const dateHistogramArray = [series, columns, rows, stackedSeries];
const names = ['series', 'columns', 'rows', 'stackedSeries'];
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/vis.js b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/vis.js
similarity index 92%
rename from src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/vis.js
rename to src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/vis.js
index 4852f71d8c45b..67f29ee96a336 100644
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/vis.js
+++ b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/vis.js
@@ -21,11 +21,12 @@ import _ from 'lodash';
import $ from 'jquery';
import expect from '@kbn/expect';
-import series from './lib/fixtures/mock_data/date_histogram/_series';
-import columns from './lib/fixtures/mock_data/date_histogram/_columns';
-import rows from './lib/fixtures/mock_data/date_histogram/_rows';
-import stackedSeries from './lib/fixtures/mock_data/date_histogram/_stacked_series';
-import { getVis, getMockUiState } from './lib/fixtures/_vis_fixture';
+import series from '../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series';
+import columns from '../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_columns';
+import rows from '../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_rows';
+import stackedSeries from '../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_stacked_series';
+import { getMockUiState } from '../../../../../../plugins/vis_type_vislib/public/fixtures/mocks';
+import { getVis } from './_vis_fixture';
const dataArray = [series, columns, rows, stackedSeries];
const names = ['series', 'columns', 'rows', 'stackedSeries'];
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/area_chart.js b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/area_chart.js
similarity index 89%
rename from src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/area_chart.js
rename to src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/area_chart.js
index c3f5859eb454c..eb529c380cdda 100644
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/area_chart.js
+++ b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/area_chart.js
@@ -22,15 +22,16 @@ import _ from 'lodash';
import $ from 'jquery';
import expect from '@kbn/expect';
-import { getVis, getMockUiState } from '../lib/fixtures/_vis_fixture';
+import { getMockUiState } from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mocks';
+import { getVis } from '../_vis_fixture';
const dataTypesArray = {
- 'series pos': require('../lib/fixtures/mock_data/date_histogram/_series'),
- 'series pos neg': require('../lib/fixtures/mock_data/date_histogram/_series_pos_neg'),
- 'series neg': require('../lib/fixtures/mock_data/date_histogram/_series_neg'),
- 'term columns': require('../lib/fixtures/mock_data/terms/_columns'),
- 'range rows': require('../lib/fixtures/mock_data/range/_rows'),
- stackedSeries: require('../lib/fixtures/mock_data/date_histogram/_stacked_series'),
+ 'series pos': require('../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series'),
+ 'series pos neg': require('../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series_pos_neg'),
+ 'series neg': require('../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series_neg'),
+ 'term columns': require('../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/terms/_columns'),
+ 'range rows': require('../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/range/_rows'),
+ stackedSeries: require('../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_stacked_series'),
};
const visLibParams = {
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/chart.js b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/chart.js
similarity index 92%
rename from src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/chart.js
rename to src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/chart.js
index 9653f9abab6fb..4c5e3db316243 100644
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/chart.js
+++ b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/chart.js
@@ -20,8 +20,9 @@
import d3 from 'd3';
import expect from '@kbn/expect';
-import { Chart } from '../../visualizations/_chart';
-import { getVis, getMockUiState } from '../lib/fixtures/_vis_fixture';
+import { Chart } from '../../../../../../../plugins/vis_type_vislib/public/vislib/visualizations/_chart';
+import { getMockUiState } from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mocks';
+import { getVis } from '../_vis_fixture';
describe('Vislib _chart Test Suite', function() {
let vis;
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/column_chart.js b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/column_chart.js
similarity index 89%
rename from src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/column_chart.js
rename to src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/column_chart.js
index 2216294fcbac1..5cbd5948bc477 100644
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/column_chart.js
+++ b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/column_chart.js
@@ -23,17 +23,18 @@ import $ from 'jquery';
import expect from '@kbn/expect';
// Data
-import series from '../lib/fixtures/mock_data/date_histogram/_series';
-import seriesPosNeg from '../lib/fixtures/mock_data/date_histogram/_series_pos_neg';
-import seriesNeg from '../lib/fixtures/mock_data/date_histogram/_series_neg';
-import termsColumns from '../lib/fixtures/mock_data/terms/_columns';
-import histogramRows from '../lib/fixtures/mock_data/histogram/_rows';
-import stackedSeries from '../lib/fixtures/mock_data/date_histogram/_stacked_series';
-
-import { seriesMonthlyInterval } from '../lib/fixtures/mock_data/date_histogram/_series_monthly_interval';
-import { rowsSeriesWithHoles } from '../lib/fixtures/mock_data/date_histogram/_rows_series_with_holes';
-import rowsWithZeros from '../lib/fixtures/mock_data/date_histogram/_rows';
-import { getVis, getMockUiState } from '../lib/fixtures/_vis_fixture';
+import series from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series';
+import seriesPosNeg from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series_pos_neg';
+import seriesNeg from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series_neg';
+import termsColumns from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/terms/_columns';
+import histogramRows from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/histogram/_rows';
+import stackedSeries from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_stacked_series';
+
+import { seriesMonthlyInterval } from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series_monthly_interval';
+import { rowsSeriesWithHoles } from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_rows_series_with_holes';
+import rowsWithZeros from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_rows';
+import { getMockUiState } from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mocks';
+import { getVis } from '../_vis_fixture';
// tuple, with the format [description, mode, data]
const dataTypesArray = [
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/gauge_chart.js b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/gauge_chart.js
similarity index 94%
rename from src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/gauge_chart.js
rename to src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/gauge_chart.js
index fe25734fcbfde..d8ce8f1f5f44b 100644
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/gauge_chart.js
+++ b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/gauge_chart.js
@@ -21,8 +21,9 @@ import $ from 'jquery';
import _ from 'lodash';
import expect from '@kbn/expect';
-import data from '../lib/fixtures/mock_data/terms/_seriesMultiple';
-import { getVis, getMockUiState } from '../lib/fixtures/_vis_fixture';
+import data from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/terms/_series_multiple';
+import { getMockUiState } from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mocks';
+import { getVis } from '../_vis_fixture';
describe('Vislib Gauge Chart Test Suite', function() {
let vis;
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/heatmap_chart.js b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/heatmap_chart.js
similarity index 89%
rename from src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/heatmap_chart.js
rename to src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/heatmap_chart.js
index f4c952be191de..765b9118e6844 100644
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/heatmap_chart.js
+++ b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/heatmap_chart.js
@@ -23,13 +23,13 @@ import d3 from 'd3';
import expect from '@kbn/expect';
// Data
-import series from '../lib/fixtures/mock_data/date_histogram/_series';
-import seriesPosNeg from '../lib/fixtures/mock_data/date_histogram/_series_pos_neg';
-import seriesNeg from '../lib/fixtures/mock_data/date_histogram/_series_neg';
-import termsColumns from '../lib/fixtures/mock_data/terms/_columns';
-import stackedSeries from '../lib/fixtures/mock_data/date_histogram/_stacked_series';
-
-import { getVis, getMockUiState } from '../lib/fixtures/_vis_fixture';
+import series from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series';
+import seriesPosNeg from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series_pos_neg';
+import seriesNeg from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series_neg';
+import termsColumns from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/terms/_columns';
+import stackedSeries from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_stacked_series';
+import { getMockUiState } from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mocks';
+import { getVis } from '../_vis_fixture';
// tuple, with the format [description, mode, data]
const dataTypesArray = [
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/line_chart.js b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/line_chart.js
similarity index 89%
rename from src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/line_chart.js
rename to src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/line_chart.js
index 1269fe7bcf62e..691417e968eed 100644
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/line_chart.js
+++ b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/line_chart.js
@@ -23,14 +23,14 @@ import $ from 'jquery';
import _ from 'lodash';
// Data
-import seriesPos from '../lib/fixtures/mock_data/date_histogram/_series';
-import seriesPosNeg from '../lib/fixtures/mock_data/date_histogram/_series_pos_neg';
-import seriesNeg from '../lib/fixtures/mock_data/date_histogram/_series_neg';
-import histogramColumns from '../lib/fixtures/mock_data/histogram/_columns';
-import rangeRows from '../lib/fixtures/mock_data/range/_rows';
-import termSeries from '../lib/fixtures/mock_data/terms/_series';
-
-import { getVis, getMockUiState } from '../lib/fixtures/_vis_fixture';
+import seriesPos from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series';
+import seriesPosNeg from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series_pos_neg';
+import seriesNeg from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series_neg';
+import histogramColumns from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/histogram/_columns';
+import rangeRows from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/range/_rows';
+import termSeries from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/terms/_series';
+import { getMockUiState } from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mocks';
+import { getVis } from '../_vis_fixture';
const dataTypes = [
['series pos', seriesPos],
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/pie_chart.js b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/pie_chart.js
similarity index 97%
rename from src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/pie_chart.js
rename to src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/pie_chart.js
index caafb2c636271..506ad2af85c34 100644
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/pie_chart.js
+++ b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/pie_chart.js
@@ -22,7 +22,8 @@ import _ from 'lodash';
import $ from 'jquery';
import expect from '@kbn/expect';
-import { getVis, getMockUiState } from '../lib/fixtures/_vis_fixture';
+import { getMockUiState } from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mocks';
+import { getVis } from '../_vis_fixture';
import { pieChartMockData } from './pie_chart_mock_data';
const names = ['rows', 'columns', 'slices'];
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/pie_chart_mock_data.js b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/pie_chart_mock_data.js
similarity index 100%
rename from src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/pie_chart_mock_data.js
rename to src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/pie_chart_mock_data.js
diff --git a/src/legacy/core_plugins/kibana/public/index.scss b/src/legacy/core_plugins/kibana/public/index.scss
index d49c59970f521..26805554370b9 100644
--- a/src/legacy/core_plugins/kibana/public/index.scss
+++ b/src/legacy/core_plugins/kibana/public/index.scss
@@ -7,16 +7,9 @@
// Public UI styles
@import 'src/legacy/ui/public/index';
-// vis_type_vislib UI styles
-@import 'src/legacy/core_plugins/vis_type_vislib/public/index';
-
// Discover styles
@import 'discover/index';
-// Visualization styles are imported here for running karma Browser tests
-// should be somehow included through the "visualizations" plugin initialization
-@import '../../../../plugins/visualizations/public/index';
-
// Has to come after visualize because of some
// bad cascading in the Editor layout
@import '../../../../plugins/maps_legacy/public/index';
diff --git a/src/legacy/core_plugins/region_map/public/__tests__/region_map_visualization.js b/src/legacy/core_plugins/region_map/public/__tests__/region_map_visualization.js
index 6e1b0b7160941..87592cf4e750e 100644
--- a/src/legacy/core_plugins/region_map/public/__tests__/region_map_visualization.js
+++ b/src/legacy/core_plugins/region_map/public/__tests__/region_map_visualization.js
@@ -54,6 +54,7 @@ import { BaseVisType } from '../../../../../plugins/visualizations/public/vis_ty
import { setInjectedVarFunc } from '../../../../../plugins/maps_legacy/public/kibana_services';
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
import { ServiceSettings } from '../../../../../plugins/maps_legacy/public/map/service_settings';
+import { getBaseMapsVis } from '../../../../../plugins/maps_legacy/public';
const THRESHOLD = 0.45;
const PIXEL_DIFF = 96;
@@ -101,7 +102,7 @@ describe('RegionMapsVisualizationTests', function() {
let getManifestStub;
beforeEach(
- ngMock.inject((Private, $injector) => {
+ ngMock.inject(() => {
setInjectedVarFunc(injectedVar => {
switch (injectedVar) {
case 'mapConfig':
@@ -127,17 +128,28 @@ describe('RegionMapsVisualizationTests', function() {
}
});
const serviceSettings = new ServiceSettings();
- const uiSettings = $injector.get('config');
const regionmapsConfig = {
includeElasticMapsService: true,
layers: [],
};
+ const coreSetupMock = {
+ notifications: {
+ toasts: {},
+ },
+ uiSettings: {
+ get: () => {},
+ },
+ injectedMetadata: {
+ getInjectedVar: () => {},
+ },
+ };
+ const BaseMapsVisualization = getBaseMapsVis(coreSetupMock, serviceSettings);
dependencies = {
serviceSettings,
- $injector,
regionmapsConfig,
- uiSettings,
+ uiSettings: coreSetupMock.uiSettings,
+ BaseMapsVisualization,
};
regionMapVisType = new BaseVisType(createRegionMapTypeDefinition(dependencies));
diff --git a/src/legacy/core_plugins/region_map/public/components/region_map_options.tsx b/src/legacy/core_plugins/region_map/public/components/region_map_options.tsx
index 31a27c4da7fcf..5604067433f13 100644
--- a/src/legacy/core_plugins/region_map/public/components/region_map_options.tsx
+++ b/src/legacy/core_plugins/region_map/public/components/region_map_options.tsx
@@ -32,8 +32,7 @@ import {
SelectOption,
SwitchOption,
} from '../../../../../plugins/charts/public';
-import { WmsOptions } from '../../../tile_map/public/components/wms_options';
-import { RegionMapVisParams } from '../types';
+import { RegionMapVisParams, WmsOptions } from '../../../../../plugins/maps_legacy/public';
const mapLayerForOption = ({ layerId, name }: VectorLayer) => ({
text: name,
diff --git a/src/legacy/core_plugins/region_map/public/legacy.ts b/src/legacy/core_plugins/region_map/public/legacy.ts
index b0cc767a044e8..4bbd839331e56 100644
--- a/src/legacy/core_plugins/region_map/public/legacy.ts
+++ b/src/legacy/core_plugins/region_map/public/legacy.ts
@@ -21,17 +21,12 @@ import { PluginInitializerContext } from 'kibana/public';
import { npSetup, npStart } from 'ui/new_platform';
import { RegionMapPluginSetupDependencies } from './plugin';
-import { LegacyDependenciesPlugin } from './shim';
import { plugin } from '.';
const plugins: Readonly
= {
expressions: npSetup.plugins.expressions,
visualizations: npSetup.plugins.visualizations,
mapsLegacy: npSetup.plugins.mapsLegacy,
-
- // Temporary solution
- // It will be removed when all dependent services are migrated to the new platform.
- __LEGACY: new LegacyDependenciesPlugin(),
};
const pluginInstance = plugin({} as PluginInitializerContext);
diff --git a/src/legacy/core_plugins/region_map/public/plugin.ts b/src/legacy/core_plugins/region_map/public/plugin.ts
index 1453c2155e2d6..08a73517dc13b 100644
--- a/src/legacy/core_plugins/region_map/public/plugin.ts
+++ b/src/legacy/core_plugins/region_map/public/plugin.ts
@@ -25,28 +25,28 @@ import {
} from '../../../../core/public';
import { Plugin as ExpressionsPublicPlugin } from '../../../../plugins/expressions/public';
import { VisualizationsSetup } from '../../../../plugins/visualizations/public';
-
-import { LegacyDependenciesPlugin, LegacyDependenciesPluginSetup } from './shim';
-
// @ts-ignore
import { createRegionMapFn } from './region_map_fn';
// @ts-ignore
import { createRegionMapTypeDefinition } from './region_map_type';
-import { IServiceSettings, MapsLegacyPluginSetup } from '../../../../plugins/maps_legacy/public';
+import {
+ getBaseMapsVis,
+ IServiceSettings,
+ MapsLegacyPluginSetup,
+} from '../../../../plugins/maps_legacy/public';
/** @private */
-interface RegionMapVisualizationDependencies extends LegacyDependenciesPluginSetup {
+interface RegionMapVisualizationDependencies {
uiSettings: IUiSettingsClient;
regionmapsConfig: RegionMapsConfig;
serviceSettings: IServiceSettings;
- notificationService: any;
+ BaseMapsVisualization: any;
}
/** @internal */
export interface RegionMapPluginSetupDependencies {
expressions: ReturnType;
visualizations: VisualizationsSetup;
- __LEGACY: LegacyDependenciesPlugin;
mapsLegacy: MapsLegacyPluginSetup;
}
@@ -66,14 +66,13 @@ export class RegionMapPlugin implements Plugin, void> {
public async setup(
core: CoreSetup,
- { expressions, visualizations, mapsLegacy, __LEGACY }: RegionMapPluginSetupDependencies
+ { expressions, visualizations, mapsLegacy }: RegionMapPluginSetupDependencies
) {
const visualizationDependencies: Readonly = {
uiSettings: core.uiSettings,
regionmapsConfig: core.injectedMetadata.getInjectedVar('regionmap') as RegionMapsConfig,
serviceSettings: mapsLegacy.serviceSettings,
- notificationService: core.notifications.toasts,
- ...(await __LEGACY.setup()),
+ BaseMapsVisualization: getBaseMapsVis(core, mapsLegacy.serviceSettings),
};
expressions.registerFunction(createRegionMapFn);
diff --git a/src/legacy/core_plugins/region_map/public/region_map_type.js b/src/legacy/core_plugins/region_map/public/region_map_type.js
index 9174b03cf843c..b7ed14ed3706e 100644
--- a/src/legacy/core_plugins/region_map/public/region_map_type.js
+++ b/src/legacy/core_plugins/region_map/public/region_map_type.js
@@ -23,9 +23,7 @@ import { createRegionMapVisualization } from './region_map_visualization';
import { RegionMapOptions } from './components/region_map_options';
import { truncatedColorSchemas } from '../../../../plugins/charts/public';
import { Schemas } from '../../../../plugins/vis_default_editor/public';
-
-// TODO: reference to TILE_MAP plugin should be removed
-import { ORIGIN } from '../../tile_map/common/origin';
+import { ORIGIN } from '../../../../plugins/maps_legacy/public';
export function createRegionMapTypeDefinition(dependencies) {
const { uiSettings, regionmapsConfig, serviceSettings } = dependencies;
diff --git a/src/legacy/core_plugins/region_map/public/region_map_visualization.js b/src/legacy/core_plugins/region_map/public/region_map_visualization.js
index f08d53ee35c8d..5dbc1ecad277f 100644
--- a/src/legacy/core_plugins/region_map/public/region_map_visualization.js
+++ b/src/legacy/core_plugins/region_map/public/region_map_visualization.js
@@ -21,30 +21,21 @@ import { i18n } from '@kbn/i18n';
import ChoroplethLayer from './choropleth_layer';
import { getFormat } from 'ui/visualize/loader/pipeline_helpers/utilities';
import { toastNotifications } from 'ui/notify';
-
-import { TileMapTooltipFormatter } from './tooltip_formatter';
import { truncatedColorMaps } from '../../../../plugins/charts/public';
-
-// TODO: reference to TILE_MAP plugin should be removed
-import { BaseMapsVisualizationProvider } from '../../tile_map/public/base_maps_visualization';
+import { tooltipFormatter } from './tooltip_formatter';
+import { mapTooltipProvider } from '../../../../plugins/maps_legacy/public';
export function createRegionMapVisualization({
serviceSettings,
- $injector,
uiSettings,
- notificationService,
+ BaseMapsVisualization,
}) {
- const BaseMapsVisualization = new BaseMapsVisualizationProvider(
- serviceSettings,
- notificationService
- );
- const tooltipFormatter = new TileMapTooltipFormatter($injector);
-
return class RegionMapsVisualization extends BaseMapsVisualization {
constructor(container, vis) {
super(container, vis);
this._vis = this.vis;
this._choroplethLayer = null;
+ this._tooltipFormatter = mapTooltipProvider(container, tooltipFormatter);
}
async render(esResponse, visParams) {
@@ -89,7 +80,7 @@ export function createRegionMapVisualization({
this._choroplethLayer.setMetrics(results, metricFieldFormatter, valueColumn.name);
if (termColumn && valueColumn) {
this._choroplethLayer.setTooltipFormatter(
- tooltipFormatter,
+ this._tooltipFormatter,
metricFieldFormatter,
termColumn.name,
valueColumn.name
@@ -123,7 +114,7 @@ export function createRegionMapVisualization({
this._choroplethLayer.setColorRamp(truncatedColorMaps[visParams.colorSchema].value);
this._choroplethLayer.setLineWeight(visParams.outlineWeight);
this._choroplethLayer.setTooltipFormatter(
- tooltipFormatter,
+ this._tooltipFormatter,
metricFieldFormatter,
this._metricLabel
);
diff --git a/src/legacy/core_plugins/region_map/public/shim/legacy_dependencies_plugin.ts b/src/legacy/core_plugins/region_map/public/shim/legacy_dependencies_plugin.ts
deleted file mode 100644
index 3a7615e83f281..0000000000000
--- a/src/legacy/core_plugins/region_map/public/shim/legacy_dependencies_plugin.ts
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import chrome from 'ui/chrome';
-import { CoreStart, Plugin } from 'kibana/public';
-
-/** @internal */
-export interface LegacyDependenciesPluginSetup {
- $injector: any;
- serviceSettings: any;
-}
-
-export class LegacyDependenciesPlugin
- implements Plugin, void> {
- public async setup() {
- const $injector = await chrome.dangerouslyGetActiveInjector();
-
- return {
- $injector,
- } as LegacyDependenciesPluginSetup;
- }
-
- public start(core: CoreStart) {
- // nothing to do here yet
- }
-}
diff --git a/src/legacy/core_plugins/region_map/public/tooltip.html b/src/legacy/core_plugins/region_map/public/tooltip.html
deleted file mode 100644
index 0d57120c80a98..0000000000000
--- a/src/legacy/core_plugins/region_map/public/tooltip.html
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
- {{detail.label}} |
- {{detail.value}} |
-
-
-
diff --git a/src/legacy/core_plugins/region_map/public/tooltip_formatter.js b/src/legacy/core_plugins/region_map/public/tooltip_formatter.js
index 6df08aea0baa6..8d38095ac25e0 100644
--- a/src/legacy/core_plugins/region_map/public/tooltip_formatter.js
+++ b/src/legacy/core_plugins/region_map/public/tooltip_formatter.js
@@ -17,39 +17,24 @@
* under the License.
*/
-import $ from 'jquery';
-import template from './tooltip.html';
-
-export const TileMapTooltipFormatter = $injector => {
- const $rootScope = $injector.get('$rootScope');
- const $compile = $injector.get('$compile');
-
- const $tooltipScope = $rootScope.$new();
- const $el = $('').html(template);
-
- $compile($el)($tooltipScope);
-
- return function tooltipFormatter(metric, fieldFormatter, fieldName, metricName) {
- if (!metric) {
- return '';
- }
-
- $tooltipScope.details = [];
- if (fieldName && metric) {
- $tooltipScope.details.push({
- label: fieldName,
- value: metric.term,
- });
- }
-
- if (metric) {
- $tooltipScope.details.push({
- label: metricName,
- value: fieldFormatter ? fieldFormatter.convert(metric.value, 'text') : metric.value,
- });
- }
-
- $tooltipScope.$apply();
- return $el.html();
- };
-};
+export function tooltipFormatter(metric, fieldFormatter, fieldName, metricName) {
+ if (!metric) {
+ return '';
+ }
+
+ const details = [];
+ if (fieldName && metric) {
+ details.push({
+ label: fieldName,
+ value: metric.term,
+ });
+ }
+
+ if (metric) {
+ details.push({
+ label: metricName,
+ value: fieldFormatter ? fieldFormatter.convert(metric.value, 'text') : metric.value,
+ });
+ }
+ return details;
+}
diff --git a/src/legacy/core_plugins/region_map/public/util.ts b/src/legacy/core_plugins/region_map/public/util.ts
index 24c721da1f31a..b4e0dcd5f3510 100644
--- a/src/legacy/core_plugins/region_map/public/util.ts
+++ b/src/legacy/core_plugins/region_map/public/util.ts
@@ -18,8 +18,7 @@
*/
import { FileLayer, VectorLayer } from '../../../../plugins/maps_legacy/public';
-// TODO: reference to TILE_MAP plugin should be removed
-import { ORIGIN } from '../../../../legacy/core_plugins/tile_map/common/origin';
+import { ORIGIN } from '../../../../plugins/maps_legacy/public';
export const mapToLayerWithId = (prefix: string, layer: FileLayer): VectorLayer => ({
...layer,
diff --git a/src/legacy/core_plugins/tests_bundle/index.js b/src/legacy/core_plugins/tests_bundle/index.js
index e1966a9e8b266..3348096c0e2f1 100644
--- a/src/legacy/core_plugins/tests_bundle/index.js
+++ b/src/legacy/core_plugins/tests_bundle/index.js
@@ -18,6 +18,7 @@
*/
import { createReadStream } from 'fs';
+import { resolve } from 'path';
import globby from 'globby';
import MultiStream from 'multistream';
@@ -40,6 +41,7 @@ export default kibana => {
},
uiExports: {
+ styleSheetPaths: resolve(__dirname, 'public/index.scss'),
async __bundleProvider__(kbnServer) {
const modules = new Set();
diff --git a/src/legacy/core_plugins/tests_bundle/public/index.scss b/src/legacy/core_plugins/tests_bundle/public/index.scss
new file mode 100644
index 0000000000000..8020cef8d8492
--- /dev/null
+++ b/src/legacy/core_plugins/tests_bundle/public/index.scss
@@ -0,0 +1,6 @@
+@import 'src/legacy/ui/public/styles/styling_constants';
+
+// This file pulls some styles of NP plugins into the legacy test stylesheet
+// so they are available for karma browser tests.
+@import '../../../../plugins/vis_type_vislib/public/index';
+@import '../../../../plugins/visualizations/public/index';
diff --git a/src/legacy/core_plugins/tile_map/common/origin.ts b/src/legacy/core_plugins/tile_map/common/origin.ts
deleted file mode 100644
index 7fcf1c659bdf3..0000000000000
--- a/src/legacy/core_plugins/tile_map/common/origin.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-export enum ORIGIN {
- EMS = 'elastic_maps_service',
- KIBANA_YML = 'self_hosted',
-}
diff --git a/src/legacy/core_plugins/tile_map/public/__tests__/coordinate_maps_visualization.js b/src/legacy/core_plugins/tile_map/public/__tests__/coordinate_maps_visualization.js
index 3904c43707906..bce2e157ebbc8 100644
--- a/src/legacy/core_plugins/tile_map/public/__tests__/coordinate_maps_visualization.js
+++ b/src/legacy/core_plugins/tile_map/public/__tests__/coordinate_maps_visualization.js
@@ -53,6 +53,7 @@ import {
import { ServiceSettings } from '../../../../../plugins/maps_legacy/public/map/service_settings';
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
import { setInjectedVarFunc } from '../../../../../plugins/maps_legacy/public/kibana_services';
+import { getBaseMapsVis } from '../../../../../plugins/maps_legacy/public';
function mockRawData() {
const stack = [dummyESResponse];
@@ -114,15 +115,26 @@ describe('CoordinateMapsVisualizationTest', function() {
return 'not found';
}
});
+
+ const coreSetupMock = {
+ notifications: {
+ toasts: {},
+ },
+ uiSettings: {},
+ injectedMetadata: {
+ getInjectedVar: () => {},
+ },
+ };
const serviceSettings = new ServiceSettings();
+ const BaseMapsVisualization = getBaseMapsVis(coreSetupMock, serviceSettings);
const uiSettings = $injector.get('config');
dependencies = {
- serviceSettings,
- uiSettings,
- $injector,
- getPrecision,
getZoomPrecision,
+ getPrecision,
+ BaseMapsVisualization,
+ uiSettings,
+ serviceSettings,
};
visType = new BaseVisType(createTileMapTypeDefinition(dependencies));
diff --git a/src/legacy/core_plugins/tile_map/public/__tests__/geohash_layer.js b/src/legacy/core_plugins/tile_map/public/__tests__/geohash_layer.js
index fc029d6bccb6e..bdf9cd806eb8b 100644
--- a/src/legacy/core_plugins/tile_map/public/__tests__/geohash_layer.js
+++ b/src/legacy/core_plugins/tile_map/public/__tests__/geohash_layer.js
@@ -24,7 +24,8 @@ import scaledCircleMarkersPng from './scaledCircleMarkers.png';
// import shadedCircleMarkersPng from './shadedCircleMarkers.png';
import { ImageComparator } from 'test_utils/image_comparator';
import GeoHashSampleData from './dummy_es_response.json';
-import { KibanaMap } from '../../../../../plugins/maps_legacy/public';
+// eslint-disable-next-line @kbn/eslint/no-restricted-paths
+import { KibanaMap } from '../../../../../plugins/maps_legacy/public/map/kibana_map';
describe('geohash_layer', function() {
let domNode;
diff --git a/src/legacy/core_plugins/tile_map/public/components/tile_map_options.tsx b/src/legacy/core_plugins/tile_map/public/components/tile_map_options.tsx
index 9ca42fe3e4074..1efb0b2f884f8 100644
--- a/src/legacy/core_plugins/tile_map/public/components/tile_map_options.tsx
+++ b/src/legacy/core_plugins/tile_map/public/components/tile_map_options.tsx
@@ -28,9 +28,7 @@ import {
SelectOption,
SwitchOption,
} from '../../../../../plugins/charts/public';
-import { WmsOptions } from './wms_options';
-import { TileMapVisParams } from '../types';
-import { MapTypes } from '../map_types';
+import { WmsOptions, TileMapVisParams, MapTypes } from '../../../../../plugins/maps_legacy/public';
export type TileMapOptionsProps = VisOptionsProps
;
diff --git a/src/legacy/core_plugins/tile_map/public/editors/_tooltip.html b/src/legacy/core_plugins/tile_map/public/editors/_tooltip.html
deleted file mode 100644
index 9df5b94a21eda..0000000000000
--- a/src/legacy/core_plugins/tile_map/public/editors/_tooltip.html
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
- {{detail.label}} |
- {{detail.value}} |
-
-
-
diff --git a/src/legacy/core_plugins/tile_map/public/editors/_tooltip_formatter.js b/src/legacy/core_plugins/tile_map/public/editors/_tooltip_formatter.js
deleted file mode 100644
index eec90e512b462..0000000000000
--- a/src/legacy/core_plugins/tile_map/public/editors/_tooltip_formatter.js
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import $ from 'jquery';
-import { i18n } from '@kbn/i18n';
-
-import template from './_tooltip.html';
-
-export function TileMapTooltipFormatterProvider($injector) {
- const $rootScope = $injector.get('$rootScope');
- const $compile = $injector.get('$compile');
-
- const $tooltipScope = $rootScope.$new();
- const $el = $('').html(template);
-
- $compile($el)($tooltipScope);
-
- return function tooltipFormatter(metricTitle, metricFormat, feature) {
- if (!feature) {
- return '';
- }
-
- $tooltipScope.details = [
- {
- label: metricTitle,
- value: metricFormat(feature.properties.value),
- },
- {
- label: i18n.translate('tileMap.tooltipFormatter.latitudeLabel', {
- defaultMessage: 'Latitude',
- }),
- value: feature.geometry.coordinates[1],
- },
- {
- label: i18n.translate('tileMap.tooltipFormatter.longitudeLabel', {
- defaultMessage: 'Longitude',
- }),
- value: feature.geometry.coordinates[0],
- },
- ];
-
- $tooltipScope.$apply();
-
- return $el.html();
- };
-}
diff --git a/src/legacy/core_plugins/tile_map/public/geohash_layer.js b/src/legacy/core_plugins/tile_map/public/geohash_layer.js
index b9acf1a15208f..f0261483d302d 100644
--- a/src/legacy/core_plugins/tile_map/public/geohash_layer.js
+++ b/src/legacy/core_plugins/tile_map/public/geohash_layer.js
@@ -20,12 +20,11 @@
import L from 'leaflet';
import { min, isEqual } from 'lodash';
import { i18n } from '@kbn/i18n';
-import { KibanaMapLayer } from '../../../../plugins/maps_legacy/public';
+import { KibanaMapLayer, MapTypes } from '../../../../plugins/maps_legacy/public';
import { HeatmapMarkers } from './markers/heatmap';
import { ScaledCirclesMarkers } from './markers/scaled_circles';
import { ShadedCirclesMarkers } from './markers/shaded_circles';
import { GeohashGridMarkers } from './markers/geohash_grid';
-import { MapTypes } from './map_types';
export class GeohashLayer extends KibanaMapLayer {
constructor(featureCollection, featureCollectionMetaData, options, zoom, kibanaMap) {
diff --git a/src/legacy/core_plugins/tile_map/public/legacy.ts b/src/legacy/core_plugins/tile_map/public/legacy.ts
index 741e118750f32..dd8d4c6e9311e 100644
--- a/src/legacy/core_plugins/tile_map/public/legacy.ts
+++ b/src/legacy/core_plugins/tile_map/public/legacy.ts
@@ -21,17 +21,12 @@ import { PluginInitializerContext } from 'kibana/public';
import { npSetup, npStart } from 'ui/new_platform';
import { TileMapPluginSetupDependencies } from './plugin';
-import { LegacyDependenciesPlugin } from './shim';
import { plugin } from '.';
const plugins: Readonly
= {
expressions: npSetup.plugins.expressions,
visualizations: npSetup.plugins.visualizations,
mapsLegacy: npSetup.plugins.mapsLegacy,
-
- // Temporary solution
- // It will be removed when all dependent services are migrated to the new platform.
- __LEGACY: new LegacyDependenciesPlugin(),
};
const pluginInstance = plugin({} as PluginInitializerContext);
diff --git a/src/legacy/core_plugins/tile_map/public/plugin.ts b/src/legacy/core_plugins/tile_map/public/plugin.ts
index 2b97407b17b38..aa1460a7e2890 100644
--- a/src/legacy/core_plugins/tile_map/public/plugin.ts
+++ b/src/legacy/core_plugins/tile_map/public/plugin.ts
@@ -25,22 +25,21 @@ import {
} from '../../../../core/public';
import { Plugin as ExpressionsPublicPlugin } from '../../../../plugins/expressions/public';
import { VisualizationsSetup } from '../../../../plugins/visualizations/public';
-
-import { LegacyDependenciesPlugin, LegacyDependenciesPluginSetup } from './shim';
+// TODO: Determine why visualizations don't populate without this
+import 'angular-sanitize';
// @ts-ignore
import { createTileMapFn } from './tile_map_fn';
// @ts-ignore
import { createTileMapTypeDefinition } from './tile_map_type';
-import { IServiceSettings, MapsLegacyPluginSetup } from '../../../../plugins/maps_legacy/public';
+import { getBaseMapsVis, MapsLegacyPluginSetup } from '../../../../plugins/maps_legacy/public';
/** @private */
-interface TileMapVisualizationDependencies extends LegacyDependenciesPluginSetup {
- serviceSettings: IServiceSettings;
+interface TileMapVisualizationDependencies {
uiSettings: IUiSettingsClient;
getZoomPrecision: any;
getPrecision: any;
- notificationService: any;
+ BaseMapsVisualization: any;
}
/** @internal */
@@ -48,7 +47,6 @@ export interface TileMapPluginSetupDependencies {
expressions: ReturnType;
visualizations: VisualizationsSetup;
mapsLegacy: MapsLegacyPluginSetup;
- __LEGACY: LegacyDependenciesPlugin;
}
/** @internal */
@@ -61,16 +59,14 @@ export class TileMapPlugin implements Plugin, void> {
public async setup(
core: CoreSetup,
- { expressions, visualizations, mapsLegacy, __LEGACY }: TileMapPluginSetupDependencies
+ { expressions, visualizations, mapsLegacy }: TileMapPluginSetupDependencies
) {
- const { getZoomPrecision, getPrecision, serviceSettings } = mapsLegacy;
+ const { getZoomPrecision, getPrecision } = mapsLegacy;
const visualizationDependencies: Readonly = {
- serviceSettings,
getZoomPrecision,
getPrecision,
- notificationService: core.notifications.toasts,
+ BaseMapsVisualization: getBaseMapsVis(core, mapsLegacy.serviceSettings),
uiSettings: core.uiSettings,
- ...(await __LEGACY.setup()),
};
expressions.registerFunction(() => createTileMapFn(visualizationDependencies));
diff --git a/src/legacy/core_plugins/tile_map/public/tile_map_type.js b/src/legacy/core_plugins/tile_map/public/tile_map_type.js
index ae3a839b600e9..ca6a586d22008 100644
--- a/src/legacy/core_plugins/tile_map/public/tile_map_type.js
+++ b/src/legacy/core_plugins/tile_map/public/tile_map_type.js
@@ -19,11 +19,10 @@
import React from 'react';
import { i18n } from '@kbn/i18n';
-import { convertToGeoJson } from '../../../../plugins/maps_legacy/public';
+import { convertToGeoJson, MapTypes } from '../../../../plugins/maps_legacy/public';
import { Schemas } from '../../../../plugins/vis_default_editor/public';
import { createTileMapVisualization } from './tile_map_visualization';
import { TileMapOptions } from './components/tile_map_options';
-import { MapTypes } from './map_types';
import { supportsCssFilters } from './css_filters';
import { truncatedColorSchemas } from '../../../../plugins/charts/public';
diff --git a/src/legacy/core_plugins/tile_map/public/tile_map_visualization.js b/src/legacy/core_plugins/tile_map/public/tile_map_visualization.js
index fdce8bc51fe86..6a7bda5e18883 100644
--- a/src/legacy/core_plugins/tile_map/public/tile_map_visualization.js
+++ b/src/legacy/core_plugins/tile_map/public/tile_map_visualization.js
@@ -19,30 +19,24 @@
import { get } from 'lodash';
import { GeohashLayer } from './geohash_layer';
-import { BaseMapsVisualizationProvider } from './base_maps_visualization';
-import { TileMapTooltipFormatterProvider } from './editors/_tooltip_formatter';
import { npStart } from 'ui/new_platform';
import { getFormat } from '../../../ui/public/visualize/loader/pipeline_helpers/utilities';
-import { scaleBounds, geoContains } from '../../../../plugins/maps_legacy/public';
-
-export const createTileMapVisualization = ({
- serviceSettings,
- $injector,
- getZoomPrecision,
- getPrecision,
- notificationService,
-}) => {
- const BaseMapsVisualization = new BaseMapsVisualizationProvider(
- serviceSettings,
- notificationService
- );
- const tooltipFormatter = new TileMapTooltipFormatterProvider($injector);
+import {
+ scaleBounds,
+ geoContains,
+ mapTooltipProvider,
+} from '../../../../plugins/maps_legacy/public';
+import { tooltipFormatter } from './tooltip_formatter';
+
+export const createTileMapVisualization = dependencies => {
+ const { getZoomPrecision, getPrecision, BaseMapsVisualization } = dependencies;
return class CoordinateMapsVisualization extends BaseMapsVisualization {
constructor(element, vis) {
super(element, vis);
this._geohashLayer = null;
+ this._tooltipFormatter = mapTooltipProvider(element, tooltipFormatter);
}
updateGeohashAgg = () => {
@@ -190,18 +184,15 @@ export const createTileMapVisualization = ({
const metricDimension = this._params.dimensions.metric;
const metricLabel = metricDimension ? metricDimension.label : '';
const metricFormat = getFormat(metricDimension && metricDimension.format);
- const boundTooltipFormatter = tooltipFormatter.bind(
- null,
- metricLabel,
- metricFormat.getConverterFor('text')
- );
return {
label: metricLabel,
valueFormatter: this._geoJsonFeatureCollectionAndMeta
? metricFormat.getConverterFor('text')
: null,
- tooltipFormatter: this._geoJsonFeatureCollectionAndMeta ? boundTooltipFormatter : null,
+ tooltipFormatter: this._geoJsonFeatureCollectionAndMeta
+ ? this._tooltipFormatter.bind(null, metricLabel, metricFormat.getConverterFor('text'))
+ : null,
mapType: newParams.mapType,
isFilteredByCollar: this._isFilteredByCollar(),
colorRamp: newParams.colorSchema,
diff --git a/src/legacy/core_plugins/tile_map/public/shim/legacy_dependencies_plugin.ts b/src/legacy/core_plugins/tile_map/public/tooltip_formatter.js
similarity index 57%
rename from src/legacy/core_plugins/tile_map/public/shim/legacy_dependencies_plugin.ts
rename to src/legacy/core_plugins/tile_map/public/tooltip_formatter.js
index 5296e98b09efe..1c87d4dcca2b5 100644
--- a/src/legacy/core_plugins/tile_map/public/shim/legacy_dependencies_plugin.ts
+++ b/src/legacy/core_plugins/tile_map/public/tooltip_formatter.js
@@ -17,27 +17,29 @@
* under the License.
*/
-import chrome from 'ui/chrome';
-import { CoreStart, Plugin } from 'kibana/public';
-// TODO: Determine why visualizations don't populate without this
-import 'angular-sanitize';
+import { i18n } from '@kbn/i18n';
-/** @internal */
-export interface LegacyDependenciesPluginSetup {
- $injector: any;
-}
-
-export class LegacyDependenciesPlugin
- implements Plugin, void> {
- public async setup() {
- const $injector = await chrome.dangerouslyGetActiveInjector();
-
- return {
- $injector,
- } as LegacyDependenciesPluginSetup;
+export function tooltipFormatter(metricTitle, metricFormat, feature) {
+ if (!feature) {
+ return '';
}
- public start(core: CoreStart) {
- // nothing to do here yet
- }
+ return [
+ {
+ label: metricTitle,
+ value: metricFormat(feature.properties.value),
+ },
+ {
+ label: i18n.translate('tileMap.tooltipFormatter.latitudeLabel', {
+ defaultMessage: 'Latitude',
+ }),
+ value: feature.geometry.coordinates[1],
+ },
+ {
+ label: i18n.translate('tileMap.tooltipFormatter.longitudeLabel', {
+ defaultMessage: 'Longitude',
+ }),
+ value: feature.geometry.coordinates[0],
+ },
+ ];
}
diff --git a/src/legacy/core_plugins/vis_type_vislib/index.ts b/src/legacy/core_plugins/vis_type_vislib/index.ts
deleted file mode 100644
index da9476285a9b2..0000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/index.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import { resolve } from 'path';
-import { Legacy } from 'kibana';
-
-import { LegacyPluginApi, LegacyPluginInitializer } from '../../types';
-
-const visTypeVislibPluginInitializer: LegacyPluginInitializer = ({ Plugin }: LegacyPluginApi) =>
- new Plugin({
- id: 'vis_type_vislib',
- require: ['kibana', 'elasticsearch', 'interpreter'],
- publicDir: resolve(__dirname, 'public'),
- styleSheetPaths: resolve(__dirname, 'public/index.scss'),
- uiExports: {
- hacks: [resolve(__dirname, 'public/legacy')],
- injectDefaultVars: server => ({}),
- },
- init: (server: Legacy.Server) => ({}),
- config(Joi: any) {
- return Joi.object({
- enabled: Joi.boolean().default(true),
- }).default();
- },
- } as Legacy.PluginSpecOptions);
-
-// eslint-disable-next-line import/no-default-export
-export default visTypeVislibPluginInitializer;
diff --git a/src/legacy/core_plugins/vis_type_vislib/package.json b/src/legacy/core_plugins/vis_type_vislib/package.json
deleted file mode 100644
index e30a9e2b35834..0000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/package.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "name": "vis_type_vislib",
- "version": "kibana"
-}
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/legacy_imports.ts b/src/legacy/core_plugins/vis_type_vislib/public/legacy_imports.ts
deleted file mode 100644
index c04ffa506eb04..0000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/legacy_imports.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import { search } from '../../../../plugins/data/public';
-export const { tabifyAggResponse, tabifyGetColumns } = search;
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_columns.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_columns.js
deleted file mode 100644
index b5b14c279b40e..0000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_columns.js
+++ /dev/null
@@ -1,300 +0,0 @@
-import moment from 'moment';
-
-export default {
- 'columns': [
- {
- 'label': '200: response',
- 'xAxisLabel': '@timestamp per 30 sec',
- 'ordered': {
- 'date': true,
- 'interval': 30000,
- 'min': 1415826608440,
- 'max': 1415827508440
- },
- 'yAxisLabel': 'Count of documents',
- 'xAxisFormatter': function (thing) {
- return moment(thing);
- },
- 'tooltipFormatter': function (d) {
- return d;
- },
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 1415826600000,
- 'y': 4
- },
- {
- 'x': 1415826630000,
- 'y': 8
- },
- {
- 'x': 1415826660000,
- 'y': 7
- },
- {
- 'x': 1415826690000,
- 'y': 5
- },
- {
- 'x': 1415826720000,
- 'y': 5
- },
- {
- 'x': 1415826750000,
- 'y': 4
- },
- {
- 'x': 1415826780000,
- 'y': 10
- },
- {
- 'x': 1415826810000,
- 'y': 7
- },
- {
- 'x': 1415826840000,
- 'y': 9
- },
- {
- 'x': 1415826870000,
- 'y': 8
- },
- {
- 'x': 1415826900000,
- 'y': 9
- },
- {
- 'x': 1415826930000,
- 'y': 8
- },
- {
- 'x': 1415826960000,
- 'y': 3
- },
- {
- 'x': 1415826990000,
- 'y': 9
- },
- {
- 'x': 1415827020000,
- 'y': 6
- },
- {
- 'x': 1415827050000,
- 'y': 8
- },
- {
- 'x': 1415827080000,
- 'y': 7
- },
- {
- 'x': 1415827110000,
- 'y': 4
- },
- {
- 'x': 1415827140000,
- 'y': 6
- },
- {
- 'x': 1415827170000,
- 'y': 10
- },
- {
- 'x': 1415827200000,
- 'y': 2
- },
- {
- 'x': 1415827230000,
- 'y': 8
- },
- {
- 'x': 1415827260000,
- 'y': 5
- },
- {
- 'x': 1415827290000,
- 'y': 6
- },
- {
- 'x': 1415827320000,
- 'y': 6
- },
- {
- 'x': 1415827350000,
- 'y': 10
- },
- {
- 'x': 1415827380000,
- 'y': 6
- },
- {
- 'x': 1415827410000,
- 'y': 6
- },
- {
- 'x': 1415827440000,
- 'y': 12
- },
- {
- 'x': 1415827470000,
- 'y': 9
- },
- {
- 'x': 1415827500000,
- 'y': 1
- }
- ]
- }
- ]
- },
- {
- 'label': '503: response',
- 'xAxisLabel': '@timestamp per 30 sec',
- 'ordered': {
- 'date': true,
- 'interval': 30000,
- 'min': 1415826608440,
- 'max': 1415827508440
- },
- 'yAxisLabel': 'Count of documents',
- 'xAxisFormatter': function (thing) {
- return moment(thing);
- },
- 'tooltipFormatter': function (d) {
- return d;
- },
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 1415826630000,
- 'y': 1
- },
- {
- 'x': 1415826660000,
- 'y': 1
- },
- {
- 'x': 1415826720000,
- 'y': 1
- },
- {
- 'x': 1415826780000,
- 'y': 1
- },
- {
- 'x': 1415826900000,
- 'y': 1
- },
- {
- 'x': 1415827020000,
- 'y': 1
- },
- {
- 'x': 1415827080000,
- 'y': 1
- },
- {
- 'x': 1415827110000,
- 'y': 2
- }
- ]
- }
- ]
- },
- {
- 'label': '404: response',
- 'xAxisLabel': '@timestamp per 30 sec',
- 'ordered': {
- 'date': true,
- 'interval': 30000,
- 'min': 1415826608440,
- 'max': 1415827508440
- },
- 'yAxisLabel': 'Count of documents',
- 'xAxisFormatter': function (thing) {
- return moment(thing);
- },
- 'tooltipFormatter': function (d) {
- return d;
- },
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 1415826660000,
- 'y': 1
- },
- {
- 'x': 1415826720000,
- 'y': 1
- },
- {
- 'x': 1415826810000,
- 'y': 1
- },
- {
- 'x': 1415826960000,
- 'y': 1
- },
- {
- 'x': 1415827050000,
- 'y': 1
- },
- {
- 'x': 1415827260000,
- 'y': 1
- },
- {
- 'x': 1415827380000,
- 'y': 1
- },
- {
- 'x': 1415827410000,
- 'y': 1
- }
- ]
- }
- ]
- }
- ],
- 'xAxisOrderedValues': [
- 1415826600000,
- 1415826630000,
- 1415826660000,
- 1415826690000,
- 1415826720000,
- 1415826750000,
- 1415826780000,
- 1415826810000,
- 1415826840000,
- 1415826870000,
- 1415826900000,
- 1415826930000,
- 1415826960000,
- 1415826990000,
- 1415827020000,
- 1415827050000,
- 1415827080000,
- 1415827110000,
- 1415827140000,
- 1415827170000,
- 1415827200000,
- 1415827230000,
- 1415827260000,
- 1415827290000,
- 1415827320000,
- 1415827350000,
- 1415827380000,
- 1415827410000,
- 1415827440000,
- 1415827470000,
- 1415827500000,
- ],
- 'hits': 225
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_rows.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_rows.js
deleted file mode 100644
index 98609d8ffbcd3..0000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_rows.js
+++ /dev/null
@@ -1,1678 +0,0 @@
-import moment from 'moment';
-
-export default {
- 'rows': [
- {
- 'label': '0.0-1000.0: bytes',
- 'xAxisLabel': '@timestamp per 30 sec',
- 'ordered': {
- 'date': true,
- 'interval': 30000,
- 'min': 1415826260456,
- 'max': 1415827160456
- },
- 'yAxisLabel': 'Count of documents',
- 'xAxisFormatter': function (thing) {
- return moment(thing);
- },
- 'tooltipFormatter': function (d) {
- return d;
- },
- 'series': [
- {
- 'label': 'jpg',
- 'values': [
- {
- 'x': 1415826240000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826270000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826300000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826330000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415826360000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826390000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826420000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826450000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826480000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826510000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826540000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826570000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826600000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826630000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415826660000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826690000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826720000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826750000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826780000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415826810000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826840000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826870000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826900000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415826930000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826960000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826990000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827020000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415827050000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827080000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827110000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415827140000,
- 'y': 0,
- 'y0': 0
- }
- ]
- },
- {
- 'label': 'css',
- 'values': [
- {
- 'x': 1415826240000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826270000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826300000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826330000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826360000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826390000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826420000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826450000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826480000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826510000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826540000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826570000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826600000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826630000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826660000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826690000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826720000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826750000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826780000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826810000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826840000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826870000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826900000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826930000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826960000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826990000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827020000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415827050000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827080000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415827110000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415827140000,
- 'y': 0,
- 'y0': 0
- }
- ]
- },
- {
- 'label': 'png',
- 'values': [
- {
- 'x': 1415826240000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826270000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826300000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826330000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826360000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826390000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826420000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826450000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826480000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826510000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826540000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826570000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826600000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826630000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826660000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826690000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826720000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826750000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826780000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826810000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826840000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826870000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826900000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826930000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826960000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826990000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827020000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415827050000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827080000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415827110000,
- 'y': 1,
- 'y0': 1
- },
- {
- 'x': 1415827140000,
- 'y': 0,
- 'y0': 0
- }
- ]
- },
- {
- 'label': 'php',
- 'values': [
- {
- 'x': 1415826240000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826270000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826300000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415826330000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826360000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826390000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826420000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826450000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826480000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826510000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826540000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826570000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826600000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826630000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826660000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826690000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826720000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826750000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826780000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826810000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826840000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826870000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826900000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826930000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826960000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826990000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827020000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415827050000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827080000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415827110000,
- 'y': 0,
- 'y0': 2
- },
- {
- 'x': 1415827140000,
- 'y': 0,
- 'y0': 0
- }
- ]
- },
- {
- 'label': 'gif',
- 'values': [
- {
- 'x': 1415826240000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826270000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826300000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826330000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826360000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826390000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826420000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826450000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415826480000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415826510000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826540000,
- 'y': 3,
- 'y0': 0
- },
- {
- 'x': 1415826570000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826600000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826630000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826660000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415826690000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826720000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415826750000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826780000,
- 'y': 1,
- 'y0': 1
- },
- {
- 'x': 1415826810000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826840000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826870000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826900000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826930000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826960000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826990000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827020000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415827050000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827080000,
- 'y': 1,
- 'y0': 1
- },
- {
- 'x': 1415827110000,
- 'y': 1,
- 'y0': 2
- },
- {
- 'x': 1415827140000,
- 'y': 0,
- 'y0': 0
- }
- ]
- }
- ]
- },
- {
- 'label': '1000.0-2000.0: bytes',
- 'xAxisLabel': '@timestamp per 30 sec',
- 'ordered': {
- 'date': true,
- 'interval': 30000,
- 'min': 1415826260457,
- 'max': 1415827160457
- },
- 'yAxisLabel': 'Count of documents',
- 'xAxisFormatter': function (thing) {
- return moment(thing);
- },
- 'tooltipFormatter': function (d) {
- return d;
- },
- 'series': [
- {
- 'label': 'jpg',
- 'values': [
- {
- 'x': 1415826240000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826270000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826300000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826330000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826360000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826390000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826420000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826450000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826480000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826510000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826540000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826570000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415826600000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826630000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826660000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415826690000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826720000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826750000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826780000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826810000,
- 'y': 2,
- 'y0': 0
- },
- {
- 'x': 1415826840000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415826870000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826900000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415826930000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826960000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826990000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827020000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415827050000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827080000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827110000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415827140000,
- 'y': 0,
- 'y0': 0
- }
- ]
- },
- {
- 'label': 'css',
- 'values': [
- {
- 'x': 1415826240000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826270000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826300000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826330000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826360000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826390000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826420000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826450000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826480000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826510000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826540000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826570000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826600000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826630000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826660000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826690000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826720000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826750000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826780000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826810000,
- 'y': 0,
- 'y0': 2
- },
- {
- 'x': 1415826840000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826870000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826900000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826930000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826960000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826990000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827020000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415827050000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827080000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827110000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415827140000,
- 'y': 0,
- 'y0': 0
- }
- ]
- },
- {
- 'label': 'png',
- 'values': [
- {
- 'x': 1415826240000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826270000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826300000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826330000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826360000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826390000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826420000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826450000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826480000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826510000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826540000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826570000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826600000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826630000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826660000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826690000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826720000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826750000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826780000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826810000,
- 'y': 0,
- 'y0': 2
- },
- {
- 'x': 1415826840000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826870000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826900000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826930000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826960000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826990000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415827020000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415827050000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827080000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827110000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415827140000,
- 'y': 0,
- 'y0': 0
- }
- ]
- },
- {
- 'label': 'php',
- 'values': [
- {
- 'x': 1415826240000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826270000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826300000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826330000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826360000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826390000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826420000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826450000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415826480000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826510000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826540000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826570000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826600000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826630000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826660000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826690000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826720000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826750000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826780000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826810000,
- 'y': 0,
- 'y0': 2
- },
- {
- 'x': 1415826840000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826870000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826900000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826930000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826960000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826990000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415827020000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415827050000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827080000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827110000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415827140000,
- 'y': 0,
- 'y0': 0
- }
- ]
- },
- {
- 'label': 'gif',
- 'values': [
- {
- 'x': 1415826240000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826270000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826300000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826330000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826360000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826390000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826420000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826450000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826480000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826510000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826540000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826570000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826600000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826630000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826660000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826690000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826720000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826750000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826780000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826810000,
- 'y': 0,
- 'y0': 2
- },
- {
- 'x': 1415826840000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826870000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826900000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826930000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826960000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826990000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415827020000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415827050000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827080000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827110000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415827140000,
- 'y': 0,
- 'y0': 0
- }
- ]
- }
- ]
- }
- ],
- 'xAxisOrderedValues': [
- 1415826240000,
- 1415826270000,
- 1415826300000,
- 1415826330000,
- 1415826360000,
- 1415826390000,
- 1415826420000,
- 1415826450000,
- 1415826480000,
- 1415826510000,
- 1415826540000,
- 1415826570000,
- 1415826600000,
- 1415826630000,
- 1415826660000,
- 1415826690000,
- 1415826720000,
- 1415826750000,
- 1415826780000,
- 1415826810000,
- 1415826840000,
- 1415826870000,
- 1415826900000,
- 1415826930000,
- 1415826960000,
- 1415826990000,
- 1415827020000,
- 1415827050000,
- 1415827080000,
- 1415827110000,
- 1415827140000,
- ],
- 'hits': 236
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_rows_series_with_holes.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_rows_series_with_holes.js
deleted file mode 100644
index 4ca631c7fc497..0000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_rows_series_with_holes.js
+++ /dev/null
@@ -1,123 +0,0 @@
-import moment from 'moment';
-
-export const rowsSeriesWithHoles = {
- rows: [
- {
- 'label': '',
- 'xAxisLabel': '@timestamp per 30 sec',
- 'ordered': {
- 'date': true,
- 'min': 1411761457636,
- 'max': 1411762357636,
- 'interval': 30000
- },
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 1411761450000,
- 'y': 41
- },
- {
- 'x': 1411761510000,
- 'y': 22
- },
- {
- 'x': 1411761540000,
- 'y': 17
- },
- {
- 'x': 1411761840000,
- 'y': 20
- },
- {
- 'x': 1411761870000,
- 'y': 20
- },
- {
- 'x': 1411761900000,
- 'y': 21
- },
- {
- 'x': 1411761930000,
- 'y': 17
- },
- {
- 'x': 1411761960000,
- 'y': 20
- },
- {
- 'x': 1411761990000,
- 'y': 13
- },
- {
- 'x': 1411762020000,
- 'y': 14
- },
- {
- 'x': 1411762050000,
- 'y': 25
- },
- {
- 'x': 1411762080000,
- 'y': 17
- },
- {
- 'x': 1411762110000,
- 'y': 14
- },
- {
- 'x': 1411762140000,
- 'y': 22
- },
- {
- 'x': 1411762170000,
- 'y': 14
- },
- {
- 'x': 1411762200000,
- 'y': 19
- },
- {
- 'x': 1411762320000,
- 'y': 15
- },
- {
- 'x': 1411762350000,
- 'y': 4
- }
- ]
- }
- ],
- 'hits': 533,
- 'xAxisFormatter': function (thing) {
- return moment(thing);
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- }
- ],
- 'xAxisOrderedValues': [
- 1411761450000,
- 1411761510000,
- 1411761540000,
- 1411761840000,
- 1411761870000,
- 1411761900000,
- 1411761930000,
- 1411761960000,
- 1411761990000,
- 1411762020000,
- 1411762050000,
- 1411762080000,
- 1411762110000,
- 1411762140000,
- 1411762170000,
- 1411762200000,
- 1411762320000,
- 1411762350000,
- ],
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_series.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_series.js
deleted file mode 100644
index 13e2ab7b7fb1a..0000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_series.js
+++ /dev/null
@@ -1,184 +0,0 @@
-import moment from 'moment';
-
-export default {
- 'label': '',
- 'xAxisLabel': '@timestamp per 30 sec',
- 'ordered': {
- 'date': true,
- 'min': 1411761457636,
- 'max': 1411762357636,
- 'interval': 30000
- },
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 1411761450000,
- 'y': 41
- },
- {
- 'x': 1411761480000,
- 'y': 18
- },
- {
- 'x': 1411761510000,
- 'y': 22
- },
- {
- 'x': 1411761540000,
- 'y': 17
- },
- {
- 'x': 1411761570000,
- 'y': 17
- },
- {
- 'x': 1411761600000,
- 'y': 21
- },
- {
- 'x': 1411761630000,
- 'y': 16
- },
- {
- 'x': 1411761660000,
- 'y': 17
- },
- {
- 'x': 1411761690000,
- 'y': 15
- },
- {
- 'x': 1411761720000,
- 'y': 19
- },
- {
- 'x': 1411761750000,
- 'y': 11
- },
- {
- 'x': 1411761780000,
- 'y': 13
- },
- {
- 'x': 1411761810000,
- 'y': 24
- },
- {
- 'x': 1411761840000,
- 'y': 20
- },
- {
- 'x': 1411761870000,
- 'y': 20
- },
- {
- 'x': 1411761900000,
- 'y': 21
- },
- {
- 'x': 1411761930000,
- 'y': 17
- },
- {
- 'x': 1411761960000,
- 'y': 20
- },
- {
- 'x': 1411761990000,
- 'y': 13
- },
- {
- 'x': 1411762020000,
- 'y': 14
- },
- {
- 'x': 1411762050000,
- 'y': 25
- },
- {
- 'x': 1411762080000,
- 'y': 17
- },
- {
- 'x': 1411762110000,
- 'y': 14
- },
- {
- 'x': 1411762140000,
- 'y': 22
- },
- {
- 'x': 1411762170000,
- 'y': 14
- },
- {
- 'x': 1411762200000,
- 'y': 19
- },
- {
- 'x': 1411762230000,
- 'y': 22
- },
- {
- 'x': 1411762260000,
- 'y': 17
- },
- {
- 'x': 1411762290000,
- 'y': 8
- },
- {
- 'x': 1411762320000,
- 'y': 15
- },
- {
- 'x': 1411762350000,
- 'y': 4
- }
- ]
- }
- ],
- 'hits': 533,
- 'xAxisOrderedValues': [
- 1411761450000,
- 1411761480000,
- 1411761510000,
- 1411761540000,
- 1411761570000,
- 1411761600000,
- 1411761630000,
- 1411761660000,
- 1411761690000,
- 1411761720000,
- 1411761750000,
- 1411761780000,
- 1411761810000,
- 1411761840000,
- 1411761870000,
- 1411761900000,
- 1411761930000,
- 1411761960000,
- 1411761990000,
- 1411762020000,
- 1411762050000,
- 1411762080000,
- 1411762110000,
- 1411762140000,
- 1411762170000,
- 1411762200000,
- 1411762230000,
- 1411762260000,
- 1411762290000,
- 1411762320000,
- 1411762350000,
- ],
- 'xAxisFormatter': function (thing) {
- return moment(thing);
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_series_monthly_interval.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_series_monthly_interval.js
deleted file mode 100644
index 6b7c574ab5551..0000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_series_monthly_interval.js
+++ /dev/null
@@ -1,89 +0,0 @@
-import moment from 'moment';
-
-export const seriesMonthlyInterval = {
- 'label': '',
- 'xAxisLabel': '@timestamp per month',
- 'ordered': {
- 'date': true,
- 'min': 1451631600000,
- 'max': 1483254000000,
- 'interval': 2678000000
- },
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 1451631600000,
- 'y': 10220
- },
- {
- 'x': 1454310000000,
- 'y': 9997,
- },
- {
- 'x': 1456815600000,
- 'y': 10792,
- },
- {
- 'x': 1459490400000,
- 'y': 10262
- },
- {
- 'x': 1462082400000,
- 'y': 10080
- },
- {
- 'x': 1464760800000,
- 'y': 11161
- },
- {
- 'x': 1467352800000,
- 'y': 9933
- },
- {
- 'x': 1470031200000,
- 'y': 10342
- },
- {
- 'x': 1472709600000,
- 'y': 10887
- },
- {
- 'x': 1475301600000,
- 'y': 9666
- },
- {
- 'x': 1477980000000,
- 'y': 9556
- },
- {
- 'x': 1480575600000,
- 'y': 11644
- }
- ]
- }
- ],
- 'hits': 533,
- 'xAxisOrderedValues': [
- 1451631600000,
- 1454310000000,
- 1456815600000,
- 1459490400000,
- 1462082400000,
- 1464760800000,
- 1467352800000,
- 1470031200000,
- 1472709600000,
- 1475301600000,
- 1477980000000,
- 1480575600000,
- ],
- 'xAxisFormatter': function (thing) {
- return moment(thing);
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_series_neg.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_series_neg.js
deleted file mode 100644
index ff5cd05b2f2d4..0000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_series_neg.js
+++ /dev/null
@@ -1,184 +0,0 @@
-import moment from 'moment';
-
-export default {
- 'label': '',
- 'xAxisLabel': '@timestamp per 30 sec',
- 'ordered': {
- 'date': true,
- 'min': 1411761457636,
- 'max': 1411762357636,
- 'interval': 30000
- },
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 1411761450000,
- 'y': -41
- },
- {
- 'x': 1411761480000,
- 'y': -18
- },
- {
- 'x': 1411761510000,
- 'y': -22
- },
- {
- 'x': 1411761540000,
- 'y': -17
- },
- {
- 'x': 1411761570000,
- 'y': -17
- },
- {
- 'x': 1411761600000,
- 'y': -21
- },
- {
- 'x': 1411761630000,
- 'y': -16
- },
- {
- 'x': 1411761660000,
- 'y': -17
- },
- {
- 'x': 1411761690000,
- 'y': -15
- },
- {
- 'x': 1411761720000,
- 'y': -19
- },
- {
- 'x': 1411761750000,
- 'y': -11
- },
- {
- 'x': 1411761780000,
- 'y': -13
- },
- {
- 'x': 1411761810000,
- 'y': -24
- },
- {
- 'x': 1411761840000,
- 'y': -20
- },
- {
- 'x': 1411761870000,
- 'y': -20
- },
- {
- 'x': 1411761900000,
- 'y': -21
- },
- {
- 'x': 1411761930000,
- 'y': -17
- },
- {
- 'x': 1411761960000,
- 'y': -20
- },
- {
- 'x': 1411761990000,
- 'y': -13
- },
- {
- 'x': 1411762020000,
- 'y': -14
- },
- {
- 'x': 1411762050000,
- 'y': -25
- },
- {
- 'x': 1411762080000,
- 'y': -17
- },
- {
- 'x': 1411762110000,
- 'y': -14
- },
- {
- 'x': 1411762140000,
- 'y': -22
- },
- {
- 'x': 1411762170000,
- 'y': -14
- },
- {
- 'x': 1411762200000,
- 'y': -19
- },
- {
- 'x': 1411762230000,
- 'y': -22
- },
- {
- 'x': 1411762260000,
- 'y': -17
- },
- {
- 'x': 1411762290000,
- 'y': -8
- },
- {
- 'x': 1411762320000,
- 'y': -15
- },
- {
- 'x': 1411762350000,
- 'y': -4
- }
- ]
- }
- ],
- 'hits': 533,
- 'xAxisOrderedValues': [
- 1411761450000,
- 1411761480000,
- 1411761510000,
- 1411761540000,
- 1411761570000,
- 1411761600000,
- 1411761630000,
- 1411761660000,
- 1411761690000,
- 1411761720000,
- 1411761750000,
- 1411761780000,
- 1411761810000,
- 1411761840000,
- 1411761870000,
- 1411761900000,
- 1411761930000,
- 1411761960000,
- 1411761990000,
- 1411762020000,
- 1411762050000,
- 1411762080000,
- 1411762110000,
- 1411762140000,
- 1411762170000,
- 1411762200000,
- 1411762230000,
- 1411762260000,
- 1411762290000,
- 1411762320000,
- 1411762350000,
- ],
- 'xAxisFormatter': function (thing) {
- return moment(thing);
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_series_pos_neg.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_series_pos_neg.js
deleted file mode 100644
index 06d9b31dc6b57..0000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_series_pos_neg.js
+++ /dev/null
@@ -1,184 +0,0 @@
-import moment from 'moment';
-
-export default {
- 'label': '',
- 'xAxisLabel': '@timestamp per 30 sec',
- 'ordered': {
- 'date': true,
- 'min': 1411761457636,
- 'max': 1411762357636,
- 'interval': 30000
- },
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 1411761450000,
- 'y': 41
- },
- {
- 'x': 1411761480000,
- 'y': 18
- },
- {
- 'x': 1411761510000,
- 'y': -22
- },
- {
- 'x': 1411761540000,
- 'y': -17
- },
- {
- 'x': 1411761570000,
- 'y': -17
- },
- {
- 'x': 1411761600000,
- 'y': -21
- },
- {
- 'x': 1411761630000,
- 'y': -16
- },
- {
- 'x': 1411761660000,
- 'y': 17
- },
- {
- 'x': 1411761690000,
- 'y': 15
- },
- {
- 'x': 1411761720000,
- 'y': 19
- },
- {
- 'x': 1411761750000,
- 'y': 11
- },
- {
- 'x': 1411761780000,
- 'y': -13
- },
- {
- 'x': 1411761810000,
- 'y': -24
- },
- {
- 'x': 1411761840000,
- 'y': -20
- },
- {
- 'x': 1411761870000,
- 'y': -20
- },
- {
- 'x': 1411761900000,
- 'y': -21
- },
- {
- 'x': 1411761930000,
- 'y': 17
- },
- {
- 'x': 1411761960000,
- 'y': 20
- },
- {
- 'x': 1411761990000,
- 'y': -13
- },
- {
- 'x': 1411762020000,
- 'y': -14
- },
- {
- 'x': 1411762050000,
- 'y': 25
- },
- {
- 'x': 1411762080000,
- 'y': -17
- },
- {
- 'x': 1411762110000,
- 'y': -14
- },
- {
- 'x': 1411762140000,
- 'y': -22
- },
- {
- 'x': 1411762170000,
- 'y': -14
- },
- {
- 'x': 1411762200000,
- 'y': 19
- },
- {
- 'x': 1411762230000,
- 'y': 22
- },
- {
- 'x': 1411762260000,
- 'y': 17
- },
- {
- 'x': 1411762290000,
- 'y': 8
- },
- {
- 'x': 1411762320000,
- 'y': -15
- },
- {
- 'x': 1411762350000,
- 'y': -4
- }
- ]
- }
- ],
- 'hits': 533,
- 'xAxisOrderedValues': [
- 1411761450000,
- 1411761480000,
- 1411761510000,
- 1411761540000,
- 1411761570000,
- 1411761600000,
- 1411761630000,
- 1411761660000,
- 1411761690000,
- 1411761720000,
- 1411761750000,
- 1411761780000,
- 1411761810000,
- 1411761840000,
- 1411761870000,
- 1411761900000,
- 1411761930000,
- 1411761960000,
- 1411761990000,
- 1411762020000,
- 1411762050000,
- 1411762080000,
- 1411762110000,
- 1411762140000,
- 1411762170000,
- 1411762200000,
- 1411762230000,
- 1411762260000,
- 1411762290000,
- 1411762320000,
- 1411762350000,
- ],
- 'xAxisFormatter': function (thing) {
- return moment(thing);
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_stacked_series.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_stacked_series.js
deleted file mode 100644
index 5208c7e996cd8..0000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_stacked_series.js
+++ /dev/null
@@ -1,1557 +0,0 @@
-import moment from 'moment';
-
-export default {
- 'label': '',
- 'xAxisLabel': '@timestamp per 10 min',
- 'ordered': {
- 'date': true,
- 'min': 1413544140087,
- 'max': 1413587340087,
- 'interval': 600000
- },
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'html',
- 'values': [
- {
- 'x': 1413543600000,
- 'y': 140
- },
- {
- 'x': 1413544200000,
- 'y': 1388
- },
- {
- 'x': 1413544800000,
- 'y': 1308
- },
- {
- 'x': 1413545400000,
- 'y': 1356
- },
- {
- 'x': 1413546000000,
- 'y': 1314
- },
- {
- 'x': 1413546600000,
- 'y': 1343
- },
- {
- 'x': 1413547200000,
- 'y': 1353
- },
- {
- 'x': 1413547800000,
- 'y': 1353
- },
- {
- 'x': 1413548400000,
- 'y': 1334
- },
- {
- 'x': 1413549000000,
- 'y': 1433
- },
- {
- 'x': 1413549600000,
- 'y': 1331
- },
- {
- 'x': 1413550200000,
- 'y': 1349
- },
- {
- 'x': 1413550800000,
- 'y': 1323
- },
- {
- 'x': 1413551400000,
- 'y': 1203
- },
- {
- 'x': 1413552000000,
- 'y': 1231
- },
- {
- 'x': 1413552600000,
- 'y': 1227
- },
- {
- 'x': 1413553200000,
- 'y': 1187
- },
- {
- 'x': 1413553800000,
- 'y': 1119
- },
- {
- 'x': 1413554400000,
- 'y': 1159
- },
- {
- 'x': 1413555000000,
- 'y': 1117
- },
- {
- 'x': 1413555600000,
- 'y': 1152
- },
- {
- 'x': 1413556200000,
- 'y': 1057
- },
- {
- 'x': 1413556800000,
- 'y': 1009
- },
- {
- 'x': 1413557400000,
- 'y': 979
- },
- {
- 'x': 1413558000000,
- 'y': 975
- },
- {
- 'x': 1413558600000,
- 'y': 848
- },
- {
- 'x': 1413559200000,
- 'y': 873
- },
- {
- 'x': 1413559800000,
- 'y': 808
- },
- {
- 'x': 1413560400000,
- 'y': 784
- },
- {
- 'x': 1413561000000,
- 'y': 799
- },
- {
- 'x': 1413561600000,
- 'y': 684
- },
- {
- 'x': 1413562200000,
- 'y': 727
- },
- {
- 'x': 1413562800000,
- 'y': 621
- },
- {
- 'x': 1413563400000,
- 'y': 615
- },
- {
- 'x': 1413564000000,
- 'y': 569
- },
- {
- 'x': 1413564600000,
- 'y': 523
- },
- {
- 'x': 1413565200000,
- 'y': 474
- },
- {
- 'x': 1413565800000,
- 'y': 470
- },
- {
- 'x': 1413566400000,
- 'y': 466
- },
- {
- 'x': 1413567000000,
- 'y': 394
- },
- {
- 'x': 1413567600000,
- 'y': 404
- },
- {
- 'x': 1413568200000,
- 'y': 389
- },
- {
- 'x': 1413568800000,
- 'y': 312
- },
- {
- 'x': 1413569400000,
- 'y': 274
- },
- {
- 'x': 1413570000000,
- 'y': 285
- },
- {
- 'x': 1413570600000,
- 'y': 299
- },
- {
- 'x': 1413571200000,
- 'y': 207
- },
- {
- 'x': 1413571800000,
- 'y': 213
- },
- {
- 'x': 1413572400000,
- 'y': 119
- },
- {
- 'x': 1413573600000,
- 'y': 122
- },
- {
- 'x': 1413574200000,
- 'y': 169
- },
- {
- 'x': 1413574800000,
- 'y': 151
- },
- {
- 'x': 1413575400000,
- 'y': 152
- },
- {
- 'x': 1413576000000,
- 'y': 115
- },
- {
- 'x': 1413576600000,
- 'y': 117
- },
- {
- 'x': 1413577200000,
- 'y': 108
- },
- {
- 'x': 1413577800000,
- 'y': 100
- },
- {
- 'x': 1413578400000,
- 'y': 78
- },
- {
- 'x': 1413579000000,
- 'y': 88
- },
- {
- 'x': 1413579600000,
- 'y': 63
- },
- {
- 'x': 1413580200000,
- 'y': 58
- },
- {
- 'x': 1413580800000,
- 'y': 45
- },
- {
- 'x': 1413581400000,
- 'y': 57
- },
- {
- 'x': 1413582000000,
- 'y': 34
- },
- {
- 'x': 1413582600000,
- 'y': 41
- },
- {
- 'x': 1413583200000,
- 'y': 24
- },
- {
- 'x': 1413583800000,
- 'y': 27
- },
- {
- 'x': 1413584400000,
- 'y': 19
- },
- {
- 'x': 1413585000000,
- 'y': 24
- },
- {
- 'x': 1413585600000,
- 'y': 18
- },
- {
- 'x': 1413586200000,
- 'y': 17
- },
- {
- 'x': 1413586800000,
- 'y': 14
- }
- ]
- },
- {
- 'label': 'php',
- 'values': [
- {
- 'x': 1413543600000,
- 'y': 90
- },
- {
- 'x': 1413544200000,
- 'y': 949
- },
- {
- 'x': 1413544800000,
- 'y': 1012
- },
- {
- 'x': 1413545400000,
- 'y': 1027
- },
- {
- 'x': 1413546000000,
- 'y': 1073
- },
- {
- 'x': 1413546600000,
- 'y': 992
- },
- {
- 'x': 1413547200000,
- 'y': 1005
- },
- {
- 'x': 1413547800000,
- 'y': 1014
- },
- {
- 'x': 1413548400000,
- 'y': 987
- },
- {
- 'x': 1413549000000,
- 'y': 982
- },
- {
- 'x': 1413549600000,
- 'y': 1086
- },
- {
- 'x': 1413550200000,
- 'y': 998
- },
- {
- 'x': 1413550800000,
- 'y': 935
- },
- {
- 'x': 1413551400000,
- 'y': 995
- },
- {
- 'x': 1413552000000,
- 'y': 926
- },
- {
- 'x': 1413552600000,
- 'y': 897
- },
- {
- 'x': 1413553200000,
- 'y': 873
- },
- {
- 'x': 1413553800000,
- 'y': 885
- },
- {
- 'x': 1413554400000,
- 'y': 859
- },
- {
- 'x': 1413555000000,
- 'y': 852
- },
- {
- 'x': 1413555600000,
- 'y': 779
- },
- {
- 'x': 1413556200000,
- 'y': 739
- },
- {
- 'x': 1413556800000,
- 'y': 783
- },
- {
- 'x': 1413557400000,
- 'y': 784
- },
- {
- 'x': 1413558000000,
- 'y': 687
- },
- {
- 'x': 1413558600000,
- 'y': 660
- },
- {
- 'x': 1413559200000,
- 'y': 672
- },
- {
- 'x': 1413559800000,
- 'y': 600
- },
- {
- 'x': 1413560400000,
- 'y': 659
- },
- {
- 'x': 1413561000000,
- 'y': 540
- },
- {
- 'x': 1413561600000,
- 'y': 539
- },
- {
- 'x': 1413562200000,
- 'y': 481
- },
- {
- 'x': 1413562800000,
- 'y': 498
- },
- {
- 'x': 1413563400000,
- 'y': 444
- },
- {
- 'x': 1413564000000,
- 'y': 452
- },
- {
- 'x': 1413564600000,
- 'y': 408
- },
- {
- 'x': 1413565200000,
- 'y': 358
- },
- {
- 'x': 1413565800000,
- 'y': 321
- },
- {
- 'x': 1413566400000,
- 'y': 305
- },
- {
- 'x': 1413567000000,
- 'y': 292
- },
- {
- 'x': 1413567600000,
- 'y': 289
- },
- {
- 'x': 1413568200000,
- 'y': 239
- },
- {
- 'x': 1413568800000,
- 'y': 256
- },
- {
- 'x': 1413569400000,
- 'y': 220
- },
- {
- 'x': 1413570000000,
- 'y': 205
- },
- {
- 'x': 1413570600000,
- 'y': 201
- },
- {
- 'x': 1413571200000,
- 'y': 183
- },
- {
- 'x': 1413571800000,
- 'y': 172
- },
- {
- 'x': 1413572400000,
- 'y': 73
- },
- {
- 'x': 1413573600000,
- 'y': 90
- },
- {
- 'x': 1413574200000,
- 'y': 130
- },
- {
- 'x': 1413574800000,
- 'y': 104
- },
- {
- 'x': 1413575400000,
- 'y': 108
- },
- {
- 'x': 1413576000000,
- 'y': 92
- },
- {
- 'x': 1413576600000,
- 'y': 79
- },
- {
- 'x': 1413577200000,
- 'y': 90
- },
- {
- 'x': 1413577800000,
- 'y': 72
- },
- {
- 'x': 1413578400000,
- 'y': 68
- },
- {
- 'x': 1413579000000,
- 'y': 52
- },
- {
- 'x': 1413579600000,
- 'y': 60
- },
- {
- 'x': 1413580200000,
- 'y': 51
- },
- {
- 'x': 1413580800000,
- 'y': 32
- },
- {
- 'x': 1413581400000,
- 'y': 37
- },
- {
- 'x': 1413582000000,
- 'y': 30
- },
- {
- 'x': 1413582600000,
- 'y': 29
- },
- {
- 'x': 1413583200000,
- 'y': 24
- },
- {
- 'x': 1413583800000,
- 'y': 16
- },
- {
- 'x': 1413584400000,
- 'y': 15
- },
- {
- 'x': 1413585000000,
- 'y': 15
- },
- {
- 'x': 1413585600000,
- 'y': 10
- },
- {
- 'x': 1413586200000,
- 'y': 9
- },
- {
- 'x': 1413586800000,
- 'y': 9
- }
- ]
- },
- {
- 'label': 'png',
- 'values': [
- {
- 'x': 1413543600000,
- 'y': 44
- },
- {
- 'x': 1413544200000,
- 'y': 495
- },
- {
- 'x': 1413544800000,
- 'y': 489
- },
- {
- 'x': 1413545400000,
- 'y': 492
- },
- {
- 'x': 1413546000000,
- 'y': 556
- },
- {
- 'x': 1413546600000,
- 'y': 536
- },
- {
- 'x': 1413547200000,
- 'y': 511
- },
- {
- 'x': 1413547800000,
- 'y': 479
- },
- {
- 'x': 1413548400000,
- 'y': 544
- },
- {
- 'x': 1413549000000,
- 'y': 513
- },
- {
- 'x': 1413549600000,
- 'y': 501
- },
- {
- 'x': 1413550200000,
- 'y': 532
- },
- {
- 'x': 1413550800000,
- 'y': 440
- },
- {
- 'x': 1413551400000,
- 'y': 455
- },
- {
- 'x': 1413552000000,
- 'y': 455
- },
- {
- 'x': 1413552600000,
- 'y': 471
- },
- {
- 'x': 1413553200000,
- 'y': 428
- },
- {
- 'x': 1413553800000,
- 'y': 457
- },
- {
- 'x': 1413554400000,
- 'y': 450
- },
- {
- 'x': 1413555000000,
- 'y': 418
- },
- {
- 'x': 1413555600000,
- 'y': 398
- },
- {
- 'x': 1413556200000,
- 'y': 397
- },
- {
- 'x': 1413556800000,
- 'y': 359
- },
- {
- 'x': 1413557400000,
- 'y': 398
- },
- {
- 'x': 1413558000000,
- 'y': 339
- },
- {
- 'x': 1413558600000,
- 'y': 363
- },
- {
- 'x': 1413559200000,
- 'y': 297
- },
- {
- 'x': 1413559800000,
- 'y': 323
- },
- {
- 'x': 1413560400000,
- 'y': 302
- },
- {
- 'x': 1413561000000,
- 'y': 260
- },
- {
- 'x': 1413561600000,
- 'y': 276
- },
- {
- 'x': 1413562200000,
- 'y': 249
- },
- {
- 'x': 1413562800000,
- 'y': 248
- },
- {
- 'x': 1413563400000,
- 'y': 235
- },
- {
- 'x': 1413564000000,
- 'y': 234
- },
- {
- 'x': 1413564600000,
- 'y': 188
- },
- {
- 'x': 1413565200000,
- 'y': 192
- },
- {
- 'x': 1413565800000,
- 'y': 173
- },
- {
- 'x': 1413566400000,
- 'y': 160
- },
- {
- 'x': 1413567000000,
- 'y': 137
- },
- {
- 'x': 1413567600000,
- 'y': 158
- },
- {
- 'x': 1413568200000,
- 'y': 111
- },
- {
- 'x': 1413568800000,
- 'y': 145
- },
- {
- 'x': 1413569400000,
- 'y': 118
- },
- {
- 'x': 1413570000000,
- 'y': 104
- },
- {
- 'x': 1413570600000,
- 'y': 80
- },
- {
- 'x': 1413571200000,
- 'y': 79
- },
- {
- 'x': 1413571800000,
- 'y': 86
- },
- {
- 'x': 1413572400000,
- 'y': 47
- },
- {
- 'x': 1413573600000,
- 'y': 49
- },
- {
- 'x': 1413574200000,
- 'y': 68
- },
- {
- 'x': 1413574800000,
- 'y': 78
- },
- {
- 'x': 1413575400000,
- 'y': 77
- },
- {
- 'x': 1413576000000,
- 'y': 50
- },
- {
- 'x': 1413576600000,
- 'y': 51
- },
- {
- 'x': 1413577200000,
- 'y': 40
- },
- {
- 'x': 1413577800000,
- 'y': 42
- },
- {
- 'x': 1413578400000,
- 'y': 29
- },
- {
- 'x': 1413579000000,
- 'y': 24
- },
- {
- 'x': 1413579600000,
- 'y': 30
- },
- {
- 'x': 1413580200000,
- 'y': 18
- },
- {
- 'x': 1413580800000,
- 'y': 15
- },
- {
- 'x': 1413581400000,
- 'y': 19
- },
- {
- 'x': 1413582000000,
- 'y': 18
- },
- {
- 'x': 1413582600000,
- 'y': 13
- },
- {
- 'x': 1413583200000,
- 'y': 11
- },
- {
- 'x': 1413583800000,
- 'y': 11
- },
- {
- 'x': 1413584400000,
- 'y': 13
- },
- {
- 'x': 1413585000000,
- 'y': 9
- },
- {
- 'x': 1413585600000,
- 'y': 9
- },
- {
- 'x': 1413586200000,
- 'y': 9
- },
- {
- 'x': 1413586800000,
- 'y': 3
- }
- ]
- },
- {
- 'label': 'css',
- 'values': [
- {
- 'x': 1413543600000,
- 'y': 35
- },
- {
- 'x': 1413544200000,
- 'y': 360
- },
- {
- 'x': 1413544800000,
- 'y': 343
- },
- {
- 'x': 1413545400000,
- 'y': 329
- },
- {
- 'x': 1413546000000,
- 'y': 345
- },
- {
- 'x': 1413546600000,
- 'y': 336
- },
- {
- 'x': 1413547200000,
- 'y': 330
- },
- {
- 'x': 1413547800000,
- 'y': 334
- },
- {
- 'x': 1413548400000,
- 'y': 326
- },
- {
- 'x': 1413549000000,
- 'y': 351
- },
- {
- 'x': 1413549600000,
- 'y': 334
- },
- {
- 'x': 1413550200000,
- 'y': 351
- },
- {
- 'x': 1413550800000,
- 'y': 337
- },
- {
- 'x': 1413551400000,
- 'y': 306
- },
- {
- 'x': 1413552000000,
- 'y': 346
- },
- {
- 'x': 1413552600000,
- 'y': 317
- },
- {
- 'x': 1413553200000,
- 'y': 298
- },
- {
- 'x': 1413553800000,
- 'y': 288
- },
- {
- 'x': 1413554400000,
- 'y': 283
- },
- {
- 'x': 1413555000000,
- 'y': 262
- },
- {
- 'x': 1413555600000,
- 'y': 245
- },
- {
- 'x': 1413556200000,
- 'y': 259
- },
- {
- 'x': 1413556800000,
- 'y': 267
- },
- {
- 'x': 1413557400000,
- 'y': 230
- },
- {
- 'x': 1413558000000,
- 'y': 218
- },
- {
- 'x': 1413558600000,
- 'y': 241
- },
- {
- 'x': 1413559200000,
- 'y': 213
- },
- {
- 'x': 1413559800000,
- 'y': 239
- },
- {
- 'x': 1413560400000,
- 'y': 208
- },
- {
- 'x': 1413561000000,
- 'y': 187
- },
- {
- 'x': 1413561600000,
- 'y': 166
- },
- {
- 'x': 1413562200000,
- 'y': 154
- },
- {
- 'x': 1413562800000,
- 'y': 184
- },
- {
- 'x': 1413563400000,
- 'y': 148
- },
- {
- 'x': 1413564000000,
- 'y': 153
- },
- {
- 'x': 1413564600000,
- 'y': 149
- },
- {
- 'x': 1413565200000,
- 'y': 102
- },
- {
- 'x': 1413565800000,
- 'y': 110
- },
- {
- 'x': 1413566400000,
- 'y': 121
- },
- {
- 'x': 1413567000000,
- 'y': 120
- },
- {
- 'x': 1413567600000,
- 'y': 86
- },
- {
- 'x': 1413568200000,
- 'y': 96
- },
- {
- 'x': 1413568800000,
- 'y': 71
- },
- {
- 'x': 1413569400000,
- 'y': 92
- },
- {
- 'x': 1413570000000,
- 'y': 65
- },
- {
- 'x': 1413570600000,
- 'y': 54
- },
- {
- 'x': 1413571200000,
- 'y': 68
- },
- {
- 'x': 1413571800000,
- 'y': 57
- },
- {
- 'x': 1413572400000,
- 'y': 33
- },
- {
- 'x': 1413573600000,
- 'y': 47
- },
- {
- 'x': 1413574200000,
- 'y': 42
- },
- {
- 'x': 1413574800000,
- 'y': 39
- },
- {
- 'x': 1413575400000,
- 'y': 25
- },
- {
- 'x': 1413576000000,
- 'y': 31
- },
- {
- 'x': 1413576600000,
- 'y': 37
- },
- {
- 'x': 1413577200000,
- 'y': 35
- },
- {
- 'x': 1413577800000,
- 'y': 19
- },
- {
- 'x': 1413578400000,
- 'y': 15
- },
- {
- 'x': 1413579000000,
- 'y': 21
- },
- {
- 'x': 1413579600000,
- 'y': 16
- },
- {
- 'x': 1413580200000,
- 'y': 18
- },
- {
- 'x': 1413580800000,
- 'y': 10
- },
- {
- 'x': 1413581400000,
- 'y': 13
- },
- {
- 'x': 1413582000000,
- 'y': 14
- },
- {
- 'x': 1413582600000,
- 'y': 11
- },
- {
- 'x': 1413583200000,
- 'y': 4
- },
- {
- 'x': 1413583800000,
- 'y': 6
- },
- {
- 'x': 1413584400000,
- 'y': 3
- },
- {
- 'x': 1413585000000,
- 'y': 6
- },
- {
- 'x': 1413585600000,
- 'y': 6
- },
- {
- 'x': 1413586200000,
- 'y': 2
- },
- {
- 'x': 1413586800000,
- 'y': 3
- }
- ]
- },
- {
- 'label': 'gif',
- 'values': [
- {
- 'x': 1413543600000,
- 'y': 21
- },
- {
- 'x': 1413544200000,
- 'y': 191
- },
- {
- 'x': 1413544800000,
- 'y': 176
- },
- {
- 'x': 1413545400000,
- 'y': 166
- },
- {
- 'x': 1413546000000,
- 'y': 183
- },
- {
- 'x': 1413546600000,
- 'y': 170
- },
- {
- 'x': 1413547200000,
- 'y': 153
- },
- {
- 'x': 1413547800000,
- 'y': 202
- },
- {
- 'x': 1413548400000,
- 'y': 175
- },
- {
- 'x': 1413549000000,
- 'y': 161
- },
- {
- 'x': 1413549600000,
- 'y': 174
- },
- {
- 'x': 1413550200000,
- 'y': 167
- },
- {
- 'x': 1413550800000,
- 'y': 171
- },
- {
- 'x': 1413551400000,
- 'y': 176
- },
- {
- 'x': 1413552000000,
- 'y': 139
- },
- {
- 'x': 1413552600000,
- 'y': 145
- },
- {
- 'x': 1413553200000,
- 'y': 157
- },
- {
- 'x': 1413553800000,
- 'y': 148
- },
- {
- 'x': 1413554400000,
- 'y': 149
- },
- {
- 'x': 1413555000000,
- 'y': 135
- },
- {
- 'x': 1413555600000,
- 'y': 118
- },
- {
- 'x': 1413556200000,
- 'y': 142
- },
- {
- 'x': 1413556800000,
- 'y': 141
- },
- {
- 'x': 1413557400000,
- 'y': 146
- },
- {
- 'x': 1413558000000,
- 'y': 114
- },
- {
- 'x': 1413558600000,
- 'y': 115
- },
- {
- 'x': 1413559200000,
- 'y': 136
- },
- {
- 'x': 1413559800000,
- 'y': 106
- },
- {
- 'x': 1413560400000,
- 'y': 92
- },
- {
- 'x': 1413561000000,
- 'y': 97
- },
- {
- 'x': 1413561600000,
- 'y': 90
- },
- {
- 'x': 1413562200000,
- 'y': 69
- },
- {
- 'x': 1413562800000,
- 'y': 66
- },
- {
- 'x': 1413563400000,
- 'y': 93
- },
- {
- 'x': 1413564000000,
- 'y': 75
- },
- {
- 'x': 1413564600000,
- 'y': 68
- },
- {
- 'x': 1413565200000,
- 'y': 55
- },
- {
- 'x': 1413565800000,
- 'y': 73
- },
- {
- 'x': 1413566400000,
- 'y': 57
- },
- {
- 'x': 1413567000000,
- 'y': 48
- },
- {
- 'x': 1413567600000,
- 'y': 41
- },
- {
- 'x': 1413568200000,
- 'y': 39
- },
- {
- 'x': 1413568800000,
- 'y': 32
- },
- {
- 'x': 1413569400000,
- 'y': 33
- },
- {
- 'x': 1413570000000,
- 'y': 39
- },
- {
- 'x': 1413570600000,
- 'y': 35
- },
- {
- 'x': 1413571200000,
- 'y': 25
- },
- {
- 'x': 1413571800000,
- 'y': 28
- },
- {
- 'x': 1413572400000,
- 'y': 8
- },
- {
- 'x': 1413573600000,
- 'y': 13
- },
- {
- 'x': 1413574200000,
- 'y': 23
- },
- {
- 'x': 1413574800000,
- 'y': 19
- },
- {
- 'x': 1413575400000,
- 'y': 16
- },
- {
- 'x': 1413576000000,
- 'y': 22
- },
- {
- 'x': 1413576600000,
- 'y': 13
- },
- {
- 'x': 1413577200000,
- 'y': 21
- },
- {
- 'x': 1413577800000,
- 'y': 11
- },
- {
- 'x': 1413578400000,
- 'y': 12
- },
- {
- 'x': 1413579000000,
- 'y': 10
- },
- {
- 'x': 1413579600000,
- 'y': 7
- },
- {
- 'x': 1413580200000,
- 'y': 4
- },
- {
- 'x': 1413580800000,
- 'y': 5
- },
- {
- 'x': 1413581400000,
- 'y': 7
- },
- {
- 'x': 1413582000000,
- 'y': 9
- },
- {
- 'x': 1413582600000,
- 'y': 2
- },
- {
- 'x': 1413583200000,
- 'y': 2
- },
- {
- 'x': 1413583800000,
- 'y': 4
- },
- {
- 'x': 1413584400000,
- 'y': 6
- },
- {
- 'x': 1413585600000,
- 'y': 2
- },
- {
- 'x': 1413586200000,
- 'y': 4
- },
- {
- 'x': 1413586800000,
- 'y': 4
- }
- ]
- }
- ],
- 'hits': 108970,
- 'xAxisOrderedValues': [
- 1413543600000,
- 1413544200000,
- 1413544800000,
- 1413545400000,
- 1413546000000,
- 1413546600000,
- 1413547200000,
- 1413547800000,
- 1413548400000,
- 1413549000000,
- 1413549600000,
- 1413550200000,
- 1413550800000,
- 1413551400000,
- 1413552000000,
- 1413552600000,
- 1413553200000,
- 1413553800000,
- 1413554400000,
- 1413555000000,
- 1413555600000,
- 1413556200000,
- 1413556800000,
- 1413557400000,
- 1413558000000,
- 1413558600000,
- 1413559200000,
- 1413559800000,
- 1413560400000,
- 1413561000000,
- 1413561600000,
- 1413562200000,
- 1413562800000,
- 1413563400000,
- 1413564000000,
- 1413564600000,
- 1413565200000,
- 1413565800000,
- 1413566400000,
- 1413567000000,
- 1413567600000,
- 1413568200000,
- 1413568800000,
- 1413569400000,
- 1413570000000,
- 1413570600000,
- 1413571200000,
- 1413571800000,
- 1413572400000,
- 1413573600000,
- 1413574200000,
- 1413574800000,
- 1413575400000,
- 1413576000000,
- 1413576600000,
- 1413577200000,
- 1413577800000,
- 1413578400000,
- 1413579000000,
- 1413579600000,
- 1413580200000,
- 1413580800000,
- 1413581400000,
- 1413582000000,
- 1413582600000,
- 1413583200000,
- 1413583800000,
- 1413584400000,
- 1413585000000,
- 1413585600000,
- 1413586200000,
- 1413586800000,
- ],
- 'xAxisFormatter': function (thing) {
- return moment(thing);
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/filters/_columns.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/filters/_columns.js
deleted file mode 100644
index 041fad2ed15b9..0000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/filters/_columns.js
+++ /dev/null
@@ -1,112 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'columns': [
- {
- 'label': 'Mozilla/5.0 (X11; Linux x86_64; rv:6.0a1) Gecko/20110421 Firefox/6.0a1: agent.raw',
- 'xAxisLabel': 'filters',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'css',
- 'y': 10379
- },
- {
- 'x': 'png',
- 'y': 6395
- }
- ]
- }
- ],
- 'xAxisOrderedValues': ['css', 'png'],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- },
- {
- 'label': 'Mozilla/5.0 (X11; Linux i686) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.50 Safari/534.24: agent.raw',
- 'xAxisLabel': 'filters',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'css',
- 'y': 9253
- },
- {
- 'x': 'png',
- 'y': 5571
- }
- ]
- }
- ],
- 'xAxisOrderedValues': ['css', 'png'],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- },
- {
- 'label': 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322): agent.raw',
- 'xAxisLabel': 'filters',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'css',
- 'y': 7740
- },
- {
- 'x': 'png',
- 'y': 4697
- }
- ]
- }
- ],
- 'xAxisOrderedValues': ['css', 'png'],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- }
- ],
- 'hits': 171443
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/filters/_rows.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/filters/_rows.js
deleted file mode 100644
index cc4f598c7b1b7..0000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/filters/_rows.js
+++ /dev/null
@@ -1,109 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'rows': [
- {
- 'label': '200: response',
- 'xAxisLabel': 'filters',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'css',
- 'y': 25260
- },
- {
- 'x': 'png',
- 'y': 15311
- }
- ]
- }
- ],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- },
- {
- 'label': '404: response',
- 'xAxisLabel': 'filters',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'css',
- 'y': 1352
- },
- {
- 'x': 'png',
- 'y': 826
- }
- ]
- }
- ],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- },
- {
- 'label': '503: response',
- 'xAxisLabel': 'filters',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'css',
- 'y': 761
- },
- {
- 'x': 'png',
- 'y': 527
- }
- ]
- }
- ],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- }
- ],
- 'hits': 171443
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/filters/_series.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/filters/_series.js
deleted file mode 100644
index 2a2d14d59b67e..0000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/filters/_series.js
+++ /dev/null
@@ -1,42 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'label': '',
- 'xAxisLabel': 'filters',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'css',
- 'y': 27374
- },
- {
- 'x': 'html',
- 'y': 0
- },
- {
- 'x': 'png',
- 'y': 16663
- }
- ]
- }
- ],
- 'hits': 171454,
- 'xAxisOrderedValues': ['css', 'html', 'png'],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/geohash/_columns.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/geohash/_columns.js
deleted file mode 100644
index d283d79315177..0000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/geohash/_columns.js
+++ /dev/null
@@ -1,3745 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'columns': [
- {
- 'title': 'Top 2 geo.dest: CN',
- 'valueFormatter': _.identity,
- 'geoJson': {
- 'type': 'FeatureCollection',
- 'features': [
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 22.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 42,
- 'geohash': 's',
- 'center': [
- 22.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 's',
- 'value': 's',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 42,
- 'value': 42,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 0,
- 0
- ],
- [
- 45,
- 0
- ],
- [
- 45,
- 45
- ],
- [
- 0,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 31,
- 'geohash': 'd',
- 'center': [
- -67.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'd',
- 'value': 'd',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 31,
- 'value': 31,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- 0
- ],
- [
- -45,
- 0
- ],
- [
- -45,
- 45
- ],
- [
- -90,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 112.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 30,
- 'geohash': 'w',
- 'center': [
- 112.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'w',
- 'value': 'w',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 30,
- 'value': 30,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 90,
- 0
- ],
- [
- 135,
- 0
- ],
- [
- 135,
- 45
- ],
- [
- 90,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -112.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 25,
- 'geohash': '9',
- 'center': [
- -112.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': '9',
- 'value': '9',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 25,
- 'value': 25,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -135,
- 0
- ],
- [
- -90,
- 0
- ],
- [
- -90,
- 45
- ],
- [
- -135,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 67.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 22,
- 'geohash': 't',
- 'center': [
- 67.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 't',
- 'value': 't',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 22,
- 'value': 22,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 45,
- 0
- ],
- [
- 90,
- 0
- ],
- [
- 90,
- 45
- ],
- [
- 45,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 22.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 22,
- 'geohash': 'k',
- 'center': [
- 22.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'k',
- 'value': 'k',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 22,
- 'value': 22,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 0,
- -45
- ],
- [
- 45,
- -45
- ],
- [
- 45,
- 0
- ],
- [
- 0,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 21,
- 'geohash': '6',
- 'center': [
- -67.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': '6',
- 'value': '6',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 21,
- 'value': 21,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- -45
- ],
- [
- -45,
- -45
- ],
- [
- -45,
- 0
- ],
- [
- -90,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 22.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 19,
- 'geohash': 'u',
- 'center': [
- 22.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'u',
- 'value': 'u',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 19,
- 'value': 19,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 0,
- 45
- ],
- [
- 45,
- 45
- ],
- [
- 45,
- 90
- ],
- [
- 0,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 67.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 18,
- 'geohash': 'v',
- 'center': [
- 67.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'v',
- 'value': 'v',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 18,
- 'value': 18,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 45,
- 45
- ],
- [
- 90,
- 45
- ],
- [
- 90,
- 90
- ],
- [
- 45,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -112.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 11,
- 'geohash': 'c',
- 'center': [
- -112.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'c',
- 'value': 'c',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 11,
- 'value': 11,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -135,
- 45
- ],
- [
- -90,
- 45
- ],
- [
- -90,
- 90
- ],
- [
- -135,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 157.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 10,
- 'geohash': 'r',
- 'center': [
- 157.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'r',
- 'value': 'r',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 10,
- 'value': 10,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 135,
- -45
- ],
- [
- 180,
- -45
- ],
- [
- 180,
- 0
- ],
- [
- 135,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 112.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 9,
- 'geohash': 'y',
- 'center': [
- 112.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'y',
- 'value': 'y',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 9,
- 'value': 9,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 90,
- 45
- ],
- [
- 135,
- 45
- ],
- [
- 135,
- 90
- ],
- [
- 90,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -22.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 9,
- 'geohash': 'e',
- 'center': [
- -22.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'e',
- 'value': 'e',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 9,
- 'value': 9,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- 0
- ],
- [
- 0,
- 0
- ],
- [
- 0,
- 45
- ],
- [
- -45,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 8,
- 'geohash': 'f',
- 'center': [
- -67.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'f',
- 'value': 'f',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 8,
- 'value': 8,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- 45
- ],
- [
- -45,
- 45
- ],
- [
- -45,
- 90
- ],
- [
- -90,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -22.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 8,
- 'geohash': '7',
- 'center': [
- -22.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': '7',
- 'value': '7',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 8,
- 'value': 8,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- -45
- ],
- [
- 0,
- -45
- ],
- [
- 0,
- 0
- ],
- [
- -45,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 112.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 6,
- 'geohash': 'q',
- 'center': [
- 112.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'q',
- 'value': 'q',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 6,
- 'value': 6,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 90,
- -45
- ],
- [
- 135,
- -45
- ],
- [
- 135,
- 0
- ],
- [
- 90,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -22.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 6,
- 'geohash': 'g',
- 'center': [
- -22.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'g',
- 'value': 'g',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 6,
- 'value': 6,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- 45
- ],
- [
- 0,
- 45
- ],
- [
- 0,
- 90
- ],
- [
- -45,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 157.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 4,
- 'geohash': 'x',
- 'center': [
- 157.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'x',
- 'value': 'x',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 4,
- 'value': 4,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 135,
- 0
- ],
- [
- 180,
- 0
- ],
- [
- 180,
- 45
- ],
- [
- 135,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -157.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 3,
- 'geohash': 'b',
- 'center': [
- -157.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'b',
- 'value': 'b',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 3,
- 'value': 3,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -180,
- 45
- ],
- [
- -135,
- 45
- ],
- [
- -135,
- 90
- ],
- [
- -180,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 157.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 2,
- 'geohash': 'z',
- 'center': [
- 157.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'z',
- 'value': 'z',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 2,
- 'value': 2,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 135,
- 45
- ],
- [
- 180,
- 45
- ],
- [
- 180,
- 90
- ],
- [
- 135,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 67.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 1,
- 'geohash': 'm',
- 'center': [
- 67.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'm',
- 'value': 'm',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 1,
- 'value': 1,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 45,
- -45
- ],
- [
- 90,
- -45
- ],
- [
- 90,
- 0
- ],
- [
- 45,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -22.5,
- -67.5
- ]
- },
- 'properties': {
- 'value': 1,
- 'geohash': '5',
- 'center': [
- -22.5,
- -67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': '5',
- 'value': '5',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 1,
- 'value': 1,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- -90
- ],
- [
- 0,
- -90
- ],
- [
- 0,
- -45
- ],
- [
- -45,
- -45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- -67.5
- ]
- },
- 'properties': {
- 'value': 1,
- 'geohash': '4',
- 'center': [
- -67.5,
- -67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': '4',
- 'value': '4',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 1,
- 'value': 1,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- -90
- ],
- [
- -45,
- -90
- ],
- [
- -45,
- -45
- ],
- [
- -90,
- -45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -112.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 1,
- 'geohash': '3',
- 'center': [
- -112.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': '3',
- 'value': '3',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 1,
- 'value': 1,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -135,
- -45
- ],
- [
- -90,
- -45
- ],
- [
- -90,
- 0
- ],
- [
- -135,
- 0
- ]
- ]
- }
- }
- ],
- 'properties': {
- 'min': 1,
- 'max': 42
- }
- }
- },
- {
- 'label': 'Top 2 geo.dest: IN',
- 'valueFormatter': _.identity,
- 'geoJson': {
- 'type': 'FeatureCollection',
- 'features': [
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 22.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 32,
- 'geohash': 's',
- 'center': [
- 22.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 's',
- 'value': 's',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 32,
- 'value': 32,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 0,
- 0
- ],
- [
- 45,
- 0
- ],
- [
- 45,
- 45
- ],
- [
- 0,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 31,
- 'geohash': '6',
- 'center': [
- -67.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': '6',
- 'value': '6',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 31,
- 'value': 31,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- -45
- ],
- [
- -45,
- -45
- ],
- [
- -45,
- 0
- ],
- [
- -90,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 28,
- 'geohash': 'd',
- 'center': [
- -67.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'd',
- 'value': 'd',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 28,
- 'value': 28,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- 0
- ],
- [
- -45,
- 0
- ],
- [
- -45,
- 45
- ],
- [
- -90,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 112.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 27,
- 'geohash': 'w',
- 'center': [
- 112.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'w',
- 'value': 'w',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 27,
- 'value': 27,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 90,
- 0
- ],
- [
- 135,
- 0
- ],
- [
- 135,
- 45
- ],
- [
- 90,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 67.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 24,
- 'geohash': 't',
- 'center': [
- 67.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 't',
- 'value': 't',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 24,
- 'value': 24,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 45,
- 0
- ],
- [
- 90,
- 0
- ],
- [
- 90,
- 45
- ],
- [
- 45,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 22.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 23,
- 'geohash': 'k',
- 'center': [
- 22.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'k',
- 'value': 'k',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 23,
- 'value': 23,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 0,
- -45
- ],
- [
- 45,
- -45
- ],
- [
- 45,
- 0
- ],
- [
- 0,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 22.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 17,
- 'geohash': 'u',
- 'center': [
- 22.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'u',
- 'value': 'u',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 17,
- 'value': 17,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 0,
- 45
- ],
- [
- 45,
- 45
- ],
- [
- 45,
- 90
- ],
- [
- 0,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -112.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 16,
- 'geohash': '9',
- 'center': [
- -112.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': '9',
- 'value': '9',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 16,
- 'value': 16,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -135,
- 0
- ],
- [
- -90,
- 0
- ],
- [
- -90,
- 45
- ],
- [
- -135,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 67.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 14,
- 'geohash': 'v',
- 'center': [
- 67.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'v',
- 'value': 'v',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 14,
- 'value': 14,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 45,
- 45
- ],
- [
- 90,
- 45
- ],
- [
- 90,
- 90
- ],
- [
- 45,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -22.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 13,
- 'geohash': 'e',
- 'center': [
- -22.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'e',
- 'value': 'e',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 13,
- 'value': 13,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- 0
- ],
- [
- 0,
- 0
- ],
- [
- 0,
- 45
- ],
- [
- -45,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 157.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 9,
- 'geohash': 'r',
- 'center': [
- 157.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'r',
- 'value': 'r',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 9,
- 'value': 9,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 135,
- -45
- ],
- [
- 180,
- -45
- ],
- [
- 180,
- 0
- ],
- [
- 135,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 112.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 6,
- 'geohash': 'y',
- 'center': [
- 112.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'y',
- 'value': 'y',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 6,
- 'value': 6,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 90,
- 45
- ],
- [
- 135,
- 45
- ],
- [
- 135,
- 90
- ],
- [
- 90,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -22.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 6,
- 'geohash': 'g',
- 'center': [
- -22.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'g',
- 'value': 'g',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 6,
- 'value': 6,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- 45
- ],
- [
- 0,
- 45
- ],
- [
- 0,
- 90
- ],
- [
- -45,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 6,
- 'geohash': 'f',
- 'center': [
- -67.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'f',
- 'value': 'f',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 6,
- 'value': 6,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- 45
- ],
- [
- -45,
- 45
- ],
- [
- -45,
- 90
- ],
- [
- -90,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -112.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 5,
- 'geohash': 'c',
- 'center': [
- -112.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'c',
- 'value': 'c',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 5,
- 'value': 5,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -135,
- 45
- ],
- [
- -90,
- 45
- ],
- [
- -90,
- 90
- ],
- [
- -135,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -157.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 4,
- 'geohash': 'b',
- 'center': [
- -157.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'b',
- 'value': 'b',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 4,
- 'value': 4,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -180,
- 45
- ],
- [
- -135,
- 45
- ],
- [
- -135,
- 90
- ],
- [
- -180,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 112.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 3,
- 'geohash': 'q',
- 'center': [
- 112.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'q',
- 'value': 'q',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 3,
- 'value': 3,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 90,
- -45
- ],
- [
- 135,
- -45
- ],
- [
- 135,
- 0
- ],
- [
- 90,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- -67.5
- ]
- },
- 'properties': {
- 'value': 2,
- 'geohash': '4',
- 'center': [
- -67.5,
- -67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': '4',
- 'value': '4',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 2,
- 'value': 2,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- -90
- ],
- [
- -45,
- -90
- ],
- [
- -45,
- -45
- ],
- [
- -90,
- -45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 157.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 1,
- 'geohash': 'z',
- 'center': [
- 157.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'z',
- 'value': 'z',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 1,
- 'value': 1,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 135,
- 45
- ],
- [
- 180,
- 45
- ],
- [
- 180,
- 90
- ],
- [
- 135,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 157.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 1,
- 'geohash': 'x',
- 'center': [
- 157.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'x',
- 'value': 'x',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 1,
- 'value': 1,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 135,
- 0
- ],
- [
- 180,
- 0
- ],
- [
- 180,
- 45
- ],
- [
- 135,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 157.5,
- -67.5
- ]
- },
- 'properties': {
- 'value': 1,
- 'geohash': 'p',
- 'center': [
- 157.5,
- -67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'p',
- 'value': 'p',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 1,
- 'value': 1,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 135,
- -90
- ],
- [
- 180,
- -90
- ],
- [
- 180,
- -45
- ],
- [
- 135,
- -45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 67.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 1,
- 'geohash': 'm',
- 'center': [
- 67.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'm',
- 'value': 'm',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 1,
- 'value': 1,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 45,
- -45
- ],
- [
- 90,
- -45
- ],
- [
- 90,
- 0
- ],
- [
- 45,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -22.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 1,
- 'geohash': '7',
- 'center': [
- -22.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': '7',
- 'value': '7',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 1,
- 'value': 1,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- -45
- ],
- [
- 0,
- -45
- ],
- [
- 0,
- 0
- ],
- [
- -45,
- 0
- ]
- ]
- }
- }
- ],
- 'properties': {
- 'min': 1,
- 'max': 32
- }
- }
- }
- ]
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/geohash/_geo_json.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/geohash/_geo_json.js
deleted file mode 100644
index 4e65502f8d278..0000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/geohash/_geo_json.js
+++ /dev/null
@@ -1,1847 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'valueFormatter': _.identity,
- 'geohashGridAgg': { 'vis': { 'params': {} } },
- 'geoJson': {
- 'type': 'FeatureCollection',
- 'features': [
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 22.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 608,
- 'geohash': 's',
- 'center': [
- 22.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 's',
- 'value': 's',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 608,
- 'value': 608,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 0,
- 0
- ],
- [
- 0,
- 45
- ],
- [
- 45,
- 45
- ],
- [
- 45,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 112.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 522,
- 'geohash': 'w',
- 'center': [
- 112.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'w',
- 'value': 'w',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 522,
- 'value': 522,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 0,
- 90
- ],
- [
- 0,
- 135
- ],
- [
- 45,
- 135
- ],
- [
- 45,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 517,
- 'geohash': '6',
- 'center': [
- -67.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': '6',
- 'value': '6',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 517,
- 'value': 517,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- -90
- ],
- [
- -45,
- -45
- ],
- [
- 0,
- -45
- ],
- [
- 0,
- -90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 446,
- 'geohash': 'd',
- 'center': [
- -67.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'd',
- 'value': 'd',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 446,
- 'value': 446,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 0,
- -90
- ],
- [
- 0,
- -45
- ],
- [
- 45,
- -45
- ],
- [
- 45,
- -90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 22.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 426,
- 'geohash': 'u',
- 'center': [
- 22.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'u',
- 'value': 'u',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 426,
- 'value': 426,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 45,
- 0
- ],
- [
- 45,
- 45
- ],
- [
- 90,
- 45
- ],
- [
- 90,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 67.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 413,
- 'geohash': 't',
- 'center': [
- 67.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 't',
- 'value': 't',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 413,
- 'value': 413,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 0,
- 45
- ],
- [
- 0,
- 90
- ],
- [
- 45,
- 90
- ],
- [
- 45,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 22.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 362,
- 'geohash': 'k',
- 'center': [
- 22.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'k',
- 'value': 'k',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 362,
- 'value': 362,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- 0
- ],
- [
- -45,
- 45
- ],
- [
- 0,
- 45
- ],
- [
- 0,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -112.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 352,
- 'geohash': '9',
- 'center': [
- -112.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': '9',
- 'value': '9',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 352,
- 'value': 352,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 0,
- -135
- ],
- [
- 0,
- -90
- ],
- [
- 45,
- -90
- ],
- [
- 45,
- -135
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -22.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 216,
- 'geohash': 'e',
- 'center': [
- -22.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'e',
- 'value': 'e',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 216,
- 'value': 216,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 0,
- -45
- ],
- [
- 0,
- 0
- ],
- [
- 45,
- 0
- ],
- [
- 45,
- -45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 67.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 183,
- 'geohash': 'v',
- 'center': [
- 67.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'v',
- 'value': 'v',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 183,
- 'value': 183,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 45,
- 45
- ],
- [
- 45,
- 90
- ],
- [
- 90,
- 90
- ],
- [
- 90,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 157.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 158,
- 'geohash': 'r',
- 'center': [
- 157.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'r',
- 'value': 'r',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 158,
- 'value': 158,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- 135
- ],
- [
- -45,
- 180
- ],
- [
- 0,
- 180
- ],
- [
- 0,
- 135
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 112.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 139,
- 'geohash': 'y',
- 'center': [
- 112.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'y',
- 'value': 'y',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 139,
- 'value': 139,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 45,
- 90
- ],
- [
- 45,
- 135
- ],
- [
- 90,
- 135
- ],
- [
- 90,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -112.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 110,
- 'geohash': 'c',
- 'center': [
- -112.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'c',
- 'value': 'c',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 110,
- 'value': 110,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 45,
- -135
- ],
- [
- 45,
- -90
- ],
- [
- 90,
- -90
- ],
- [
- 90,
- -135
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 112.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 101,
- 'geohash': 'q',
- 'center': [
- 112.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'q',
- 'value': 'q',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 101,
- 'value': 101,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- 90
- ],
- [
- -45,
- 135
- ],
- [
- 0,
- 135
- ],
- [
- 0,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -22.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 101,
- 'geohash': '7',
- 'center': [
- -22.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': '7',
- 'value': '7',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 101,
- 'value': 101,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- -45
- ],
- [
- -45,
- 0
- ],
- [
- 0,
- 0
- ],
- [
- 0,
- -45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 92,
- 'geohash': 'f',
- 'center': [
- -67.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'f',
- 'value': 'f',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 92,
- 'value': 92,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 45,
- -90
- ],
- [
- 45,
- -45
- ],
- [
- 90,
- -45
- ],
- [
- 90,
- -90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -157.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 75,
- 'geohash': 'b',
- 'center': [
- -157.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'b',
- 'value': 'b',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 75,
- 'value': 75,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 45,
- -180
- ],
- [
- 45,
- -135
- ],
- [
- 90,
- -135
- ],
- [
- 90,
- -180
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -22.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 64,
- 'geohash': 'g',
- 'center': [
- -22.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'g',
- 'value': 'g',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 64,
- 'value': 64,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 45,
- -45
- ],
- [
- 45,
- 0
- ],
- [
- 90,
- 0
- ],
- [
- 90,
- -45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 157.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 36,
- 'geohash': 'z',
- 'center': [
- 157.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'z',
- 'value': 'z',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 36,
- 'value': 36,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 45,
- 135
- ],
- [
- 45,
- 180
- ],
- [
- 90,
- 180
- ],
- [
- 90,
- 135
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 157.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 34,
- 'geohash': 'x',
- 'center': [
- 157.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'x',
- 'value': 'x',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 34,
- 'value': 34,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 0,
- 135
- ],
- [
- 0,
- 180
- ],
- [
- 45,
- 180
- ],
- [
- 45,
- 135
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- -67.5
- ]
- },
- 'properties': {
- 'value': 30,
- 'geohash': '4',
- 'center': [
- -67.5,
- -67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': '4',
- 'value': '4',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 30,
- 'value': 30,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- -90
- ],
- [
- -90,
- -45
- ],
- [
- -45,
- -45
- ],
- [
- -45,
- -90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 67.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 16,
- 'geohash': 'm',
- 'center': [
- 67.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'm',
- 'value': 'm',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 16,
- 'value': 16,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- 45
- ],
- [
- -45,
- 90
- ],
- [
- 0,
- 90
- ],
- [
- 0,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -22.5,
- -67.5
- ]
- },
- 'properties': {
- 'value': 10,
- 'geohash': '5',
- 'center': [
- -22.5,
- -67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': '5',
- 'value': '5',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 10,
- 'value': 10,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- -45
- ],
- [
- -90,
- 0
- ],
- [
- -45,
- 0
- ],
- [
- -45,
- -45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 157.5,
- -67.5
- ]
- },
- 'properties': {
- 'value': 6,
- 'geohash': 'p',
- 'center': [
- 157.5,
- -67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'p',
- 'value': 'p',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 6,
- 'value': 6,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- 135
- ],
- [
- -90,
- 180
- ],
- [
- -45,
- 180
- ],
- [
- -45,
- 135
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -157.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 6,
- 'geohash': '2',
- 'center': [
- -157.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': '2',
- 'value': '2',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 6,
- 'value': 6,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- -180
- ],
- [
- -45,
- -135
- ],
- [
- 0,
- -135
- ],
- [
- 0,
- -180
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 22.5,
- -67.5
- ]
- },
- 'properties': {
- 'value': 4,
- 'geohash': 'h',
- 'center': [
- 22.5,
- -67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'h',
- 'value': 'h',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 4,
- 'value': 4,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- 0
- ],
- [
- -90,
- 45
- ],
- [
- -45,
- 45
- ],
- [
- -45,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 112.5,
- -67.5
- ]
- },
- 'properties': {
- 'value': 2,
- 'geohash': 'n',
- 'center': [
- 112.5,
- -67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'n',
- 'value': 'n',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 2,
- 'value': 2,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- 90
- ],
- [
- -90,
- 135
- ],
- [
- -45,
- 135
- ],
- [
- -45,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 67.5,
- -67.5
- ]
- },
- 'properties': {
- 'value': 2,
- 'geohash': 'j',
- 'center': [
- 67.5,
- -67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'j',
- 'value': 'j',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 2,
- 'value': 2,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- 45
- ],
- [
- -90,
- 90
- ],
- [
- -45,
- 90
- ],
- [
- -45,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -112.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 1,
- 'geohash': '3',
- 'center': [
- -112.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': '3',
- 'value': '3',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 1,
- 'value': 1,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- -135
- ],
- [
- -45,
- -90
- ],
- [
- 0,
- -90
- ],
- [
- 0,
- -135
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -112.5,
- -67.5
- ]
- },
- 'properties': {
- 'value': 1,
- 'geohash': '1',
- 'center': [
- -112.5,
- -67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': '1',
- 'value': '1',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 1,
- 'value': 1,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- -135
- ],
- [
- -90,
- -90
- ],
- [
- -45,
- -90
- ],
- [
- -45,
- -135
- ]
- ]
- }
- }
- ],
- 'properties': {
- 'min': 1,
- 'max': 608,
- 'zoom': 2,
- 'center': [5, 15]
- }
- },
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/geohash/_rows.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/geohash/_rows.js
deleted file mode 100644
index 64deea0e391a6..0000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/geohash/_rows.js
+++ /dev/null
@@ -1,3667 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'rows': [
- {
- 'title': 'Top 2 geo.dest: CN',
- 'valueFormatter': _.identity,
- 'geoJson': {
- 'type': 'FeatureCollection',
- 'features': [
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 22.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 39,
- 'geohash': 's',
- 'center': [
- 22.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 's',
- 'value': 's',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 39,
- 'value': 39,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 0,
- 0
- ],
- [
- 45,
- 0
- ],
- [
- 45,
- 45
- ],
- [
- 0,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 112.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 31,
- 'geohash': 'w',
- 'center': [
- 112.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'w',
- 'value': 'w',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 31,
- 'value': 31,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 90,
- 0
- ],
- [
- 135,
- 0
- ],
- [
- 135,
- 45
- ],
- [
- 90,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 30,
- 'geohash': 'd',
- 'center': [
- -67.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'd',
- 'value': 'd',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 30,
- 'value': 30,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- 0
- ],
- [
- -45,
- 0
- ],
- [
- -45,
- 45
- ],
- [
- -90,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -112.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 25,
- 'geohash': '9',
- 'center': [
- -112.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': '9',
- 'value': '9',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 25,
- 'value': 25,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -135,
- 0
- ],
- [
- -90,
- 0
- ],
- [
- -90,
- 45
- ],
- [
- -135,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 67.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 23,
- 'geohash': 't',
- 'center': [
- 67.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 't',
- 'value': 't',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 23,
- 'value': 23,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 45,
- 0
- ],
- [
- 90,
- 0
- ],
- [
- 90,
- 45
- ],
- [
- 45,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 22.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 23,
- 'geohash': 'k',
- 'center': [
- 22.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'k',
- 'value': 'k',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 23,
- 'value': 23,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 0,
- -45
- ],
- [
- 45,
- -45
- ],
- [
- 45,
- 0
- ],
- [
- 0,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 22,
- 'geohash': '6',
- 'center': [
- -67.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': '6',
- 'value': '6',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 22,
- 'value': 22,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- -45
- ],
- [
- -45,
- -45
- ],
- [
- -45,
- 0
- ],
- [
- -90,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 22.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 20,
- 'geohash': 'u',
- 'center': [
- 22.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'u',
- 'value': 'u',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 20,
- 'value': 20,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 0,
- 45
- ],
- [
- 45,
- 45
- ],
- [
- 45,
- 90
- ],
- [
- 0,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 67.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 18,
- 'geohash': 'v',
- 'center': [
- 67.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'v',
- 'value': 'v',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 18,
- 'value': 18,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 45,
- 45
- ],
- [
- 90,
- 45
- ],
- [
- 90,
- 90
- ],
- [
- 45,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 157.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 11,
- 'geohash': 'r',
- 'center': [
- 157.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'r',
- 'value': 'r',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 11,
- 'value': 11,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 135,
- -45
- ],
- [
- 180,
- -45
- ],
- [
- 180,
- 0
- ],
- [
- 135,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -22.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 11,
- 'geohash': 'e',
- 'center': [
- -22.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'e',
- 'value': 'e',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 11,
- 'value': 11,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- 0
- ],
- [
- 0,
- 0
- ],
- [
- 0,
- 45
- ],
- [
- -45,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 112.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 10,
- 'geohash': 'y',
- 'center': [
- 112.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'y',
- 'value': 'y',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 10,
- 'value': 10,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 90,
- 45
- ],
- [
- 135,
- 45
- ],
- [
- 135,
- 90
- ],
- [
- 90,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -112.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 10,
- 'geohash': 'c',
- 'center': [
- -112.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'c',
- 'value': 'c',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 10,
- 'value': 10,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -135,
- 45
- ],
- [
- -90,
- 45
- ],
- [
- -90,
- 90
- ],
- [
- -135,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 8,
- 'geohash': 'f',
- 'center': [
- -67.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'f',
- 'value': 'f',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 8,
- 'value': 8,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- 45
- ],
- [
- -45,
- 45
- ],
- [
- -45,
- 90
- ],
- [
- -90,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -22.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 8,
- 'geohash': '7',
- 'center': [
- -22.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': '7',
- 'value': '7',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 8,
- 'value': 8,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- -45
- ],
- [
- 0,
- -45
- ],
- [
- 0,
- 0
- ],
- [
- -45,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 112.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 6,
- 'geohash': 'q',
- 'center': [
- 112.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'q',
- 'value': 'q',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 6,
- 'value': 6,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 90,
- -45
- ],
- [
- 135,
- -45
- ],
- [
- 135,
- 0
- ],
- [
- 90,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -22.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 6,
- 'geohash': 'g',
- 'center': [
- -22.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'g',
- 'value': 'g',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 6,
- 'value': 6,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- 45
- ],
- [
- 0,
- 45
- ],
- [
- 0,
- 90
- ],
- [
- -45,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 157.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 4,
- 'geohash': 'x',
- 'center': [
- 157.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'x',
- 'value': 'x',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 4,
- 'value': 4,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 135,
- 0
- ],
- [
- 180,
- 0
- ],
- [
- 180,
- 45
- ],
- [
- 135,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -157.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 3,
- 'geohash': 'b',
- 'center': [
- -157.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'b',
- 'value': 'b',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 3,
- 'value': 3,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -180,
- 45
- ],
- [
- -135,
- 45
- ],
- [
- -135,
- 90
- ],
- [
- -180,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 157.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 2,
- 'geohash': 'z',
- 'center': [
- 157.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'z',
- 'value': 'z',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 2,
- 'value': 2,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 135,
- 45
- ],
- [
- 180,
- 45
- ],
- [
- 180,
- 90
- ],
- [
- 135,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- -67.5
- ]
- },
- 'properties': {
- 'value': 2,
- 'geohash': '4',
- 'center': [
- -67.5,
- -67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': '4',
- 'value': '4',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 2,
- 'value': 2,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- -90
- ],
- [
- -45,
- -90
- ],
- [
- -45,
- -45
- ],
- [
- -90,
- -45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -22.5,
- -67.5
- ]
- },
- 'properties': {
- 'value': 1,
- 'geohash': '5',
- 'center': [
- -22.5,
- -67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': '5',
- 'value': '5',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 1,
- 'value': 1,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- -90
- ],
- [
- 0,
- -90
- ],
- [
- 0,
- -45
- ],
- [
- -45,
- -45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -112.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 1,
- 'geohash': '3',
- 'center': [
- -112.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': '3',
- 'value': '3',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 1,
- 'value': 1,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -135,
- -45
- ],
- [
- -90,
- -45
- ],
- [
- -90,
- 0
- ],
- [
- -135,
- 0
- ]
- ]
- }
- }
- ],
- 'properties': {
- 'min': 1,
- 'max': 39
- }
- }
- },
- {
- 'label': 'Top 2 geo.dest: IN',
- 'valueFormatter': _.identity,
- 'geoJson': {
- 'type': 'FeatureCollection',
- 'features': [
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 31,
- 'geohash': '6',
- 'center': [
- -67.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': '6',
- 'value': '6',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 31,
- 'value': 31,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- -45
- ],
- [
- -45,
- -45
- ],
- [
- -45,
- 0
- ],
- [
- -90,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 22.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 30,
- 'geohash': 's',
- 'center': [
- 22.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 's',
- 'value': 's',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 30,
- 'value': 30,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 0,
- 0
- ],
- [
- 45,
- 0
- ],
- [
- 45,
- 45
- ],
- [
- 0,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 112.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 29,
- 'geohash': 'w',
- 'center': [
- 112.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'w',
- 'value': 'w',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 29,
- 'value': 29,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 90,
- 0
- ],
- [
- 135,
- 0
- ],
- [
- 135,
- 45
- ],
- [
- 90,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 28,
- 'geohash': 'd',
- 'center': [
- -67.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'd',
- 'value': 'd',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 28,
- 'value': 28,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- 0
- ],
- [
- -45,
- 0
- ],
- [
- -45,
- 45
- ],
- [
- -90,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 67.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 25,
- 'geohash': 't',
- 'center': [
- 67.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 't',
- 'value': 't',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 25,
- 'value': 25,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 45,
- 0
- ],
- [
- 90,
- 0
- ],
- [
- 90,
- 45
- ],
- [
- 45,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 22.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 24,
- 'geohash': 'k',
- 'center': [
- 22.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'k',
- 'value': 'k',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 24,
- 'value': 24,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 0,
- -45
- ],
- [
- 45,
- -45
- ],
- [
- 45,
- 0
- ],
- [
- 0,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 22.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 20,
- 'geohash': 'u',
- 'center': [
- 22.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'u',
- 'value': 'u',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 20,
- 'value': 20,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 0,
- 45
- ],
- [
- 45,
- 45
- ],
- [
- 45,
- 90
- ],
- [
- 0,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -112.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 18,
- 'geohash': '9',
- 'center': [
- -112.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': '9',
- 'value': '9',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 18,
- 'value': 18,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -135,
- 0
- ],
- [
- -90,
- 0
- ],
- [
- -90,
- 45
- ],
- [
- -135,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 67.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 14,
- 'geohash': 'v',
- 'center': [
- 67.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'v',
- 'value': 'v',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 14,
- 'value': 14,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 45,
- 45
- ],
- [
- 90,
- 45
- ],
- [
- 90,
- 90
- ],
- [
- 45,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -22.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 11,
- 'geohash': 'e',
- 'center': [
- -22.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'e',
- 'value': 'e',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 11,
- 'value': 11,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- 0
- ],
- [
- 0,
- 0
- ],
- [
- 0,
- 45
- ],
- [
- -45,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 157.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 9,
- 'geohash': 'r',
- 'center': [
- 157.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'r',
- 'value': 'r',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 9,
- 'value': 9,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 135,
- -45
- ],
- [
- 180,
- -45
- ],
- [
- 180,
- 0
- ],
- [
- 135,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 112.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 6,
- 'geohash': 'y',
- 'center': [
- 112.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'y',
- 'value': 'y',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 6,
- 'value': 6,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 90,
- 45
- ],
- [
- 135,
- 45
- ],
- [
- 135,
- 90
- ],
- [
- 90,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 6,
- 'geohash': 'f',
- 'center': [
- -67.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'f',
- 'value': 'f',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 6,
- 'value': 6,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- 45
- ],
- [
- -45,
- 45
- ],
- [
- -45,
- 90
- ],
- [
- -90,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -22.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 5,
- 'geohash': 'g',
- 'center': [
- -22.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'g',
- 'value': 'g',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 5,
- 'value': 5,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- 45
- ],
- [
- 0,
- 45
- ],
- [
- 0,
- 90
- ],
- [
- -45,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -112.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 5,
- 'geohash': 'c',
- 'center': [
- -112.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'c',
- 'value': 'c',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 5,
- 'value': 5,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -135,
- 45
- ],
- [
- -90,
- 45
- ],
- [
- -90,
- 90
- ],
- [
- -135,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -157.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 4,
- 'geohash': 'b',
- 'center': [
- -157.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'b',
- 'value': 'b',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 4,
- 'value': 4,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -180,
- 45
- ],
- [
- -135,
- 45
- ],
- [
- -135,
- 90
- ],
- [
- -180,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 112.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 3,
- 'geohash': 'q',
- 'center': [
- 112.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'q',
- 'value': 'q',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 3,
- 'value': 3,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 90,
- -45
- ],
- [
- 135,
- -45
- ],
- [
- 135,
- 0
- ],
- [
- 90,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- -67.5
- ]
- },
- 'properties': {
- 'value': 2,
- 'geohash': '4',
- 'center': [
- -67.5,
- -67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': '4',
- 'value': '4',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 2,
- 'value': 2,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- -90
- ],
- [
- -45,
- -90
- ],
- [
- -45,
- -45
- ],
- [
- -90,
- -45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 157.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 1,
- 'geohash': 'z',
- 'center': [
- 157.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'z',
- 'value': 'z',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 1,
- 'value': 1,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 135,
- 45
- ],
- [
- 180,
- 45
- ],
- [
- 180,
- 90
- ],
- [
- 135,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 157.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 1,
- 'geohash': 'x',
- 'center': [
- 157.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'x',
- 'value': 'x',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 1,
- 'value': 1,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 135,
- 0
- ],
- [
- 180,
- 0
- ],
- [
- 180,
- 45
- ],
- [
- 135,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 157.5,
- -67.5
- ]
- },
- 'properties': {
- 'value': 1,
- 'geohash': 'p',
- 'center': [
- 157.5,
- -67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'p',
- 'value': 'p',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 1,
- 'value': 1,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 135,
- -90
- ],
- [
- 180,
- -90
- ],
- [
- 180,
- -45
- ],
- [
- 135,
- -45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 67.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 1,
- 'geohash': 'm',
- 'center': [
- 67.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'm',
- 'value': 'm',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 1,
- 'value': 1,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 45,
- -45
- ],
- [
- 90,
- -45
- ],
- [
- 90,
- 0
- ],
- [
- 45,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -22.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 1,
- 'geohash': '7',
- 'center': [
- -22.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': '7',
- 'value': '7',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 1,
- 'value': 1,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- -45
- ],
- [
- 0,
- -45
- ],
- [
- 0,
- 0
- ],
- [
- -45,
- 0
- ]
- ]
- }
- }
- ],
- 'properties': {
- 'min': 1,
- 'max': 31
- }
- }
- }
- ],
- 'hits': 1639
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/histogram/_columns.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/histogram/_columns.js
deleted file mode 100644
index 96d2cfd174579..0000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/histogram/_columns.js
+++ /dev/null
@@ -1,368 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'columns': [
- {
- 'label': '404: response',
- 'xAxisLabel': 'machine.ram',
- 'ordered': {
- 'interval': 100
- },
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 2147483600,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 3221225400,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 4294967200,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 5368709100,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 6442450900,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 7516192700,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 8589934500,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 10737418200,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 11811160000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 12884901800,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 13958643700,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 15032385500,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 16106127300,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 18253611000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 19327352800,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 20401094600,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 21474836400,
- 'y': 0,
- 'y0': 0
- }
- ]
- }
- ],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- },
- {
- 'label': '200: response',
- 'xAxisLabel': 'machine.ram',
- 'ordered': {
- 'interval': 100
- },
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 2147483600,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 3221225400,
- 'y': 2,
- 'y0': 0
- },
- {
- 'x': 4294967200,
- 'y': 3,
- 'y0': 0
- },
- {
- 'x': 5368709100,
- 'y': 3,
- 'y0': 0
- },
- {
- 'x': 6442450900,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 7516192700,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 8589934500,
- 'y': 4,
- 'y0': 0
- },
- {
- 'x': 10737418200,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 11811160000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 12884901800,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 13958643700,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 15032385500,
- 'y': 2,
- 'y0': 0
- },
- {
- 'x': 16106127300,
- 'y': 3,
- 'y0': 0
- },
- {
- 'x': 18253611000,
- 'y': 4,
- 'y0': 0
- },
- {
- 'x': 19327352800,
- 'y': 5,
- 'y0': 0
- },
- {
- 'x': 20401094600,
- 'y': 2,
- 'y0': 0
- },
- {
- 'x': 21474836400,
- 'y': 2,
- 'y0': 0
- }
- ]
- }
- ],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- },
- {
- 'label': '503: response',
- 'xAxisLabel': 'machine.ram',
- 'ordered': {
- 'interval': 100
- },
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 2147483600,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 3221225400,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 4294967200,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 5368709100,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 6442450900,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 7516192700,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 8589934500,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 10737418200,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 11811160000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 12884901800,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 13958643700,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 15032385500,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 16106127300,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 18253611000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 19327352800,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 20401094600,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 21474836400,
- 'y': 0,
- 'y0': 0
- }
- ]
- }
- ],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- }
- ],
- 'xAxisOrderedValues': [
- 2147483600,
- 3221225400,
- 4294967200,
- 5368709100,
- 6442450900,
- 7516192700,
- 8589934500,
- 10737418200,
- 11811160000,
- 12884901800,
- 13958643700,
- 15032385500,
- 16106127300,
- 18253611000,
- 19327352800,
- 20401094600,
- 21474836400,
- ],
- 'hits': 40
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/histogram/_rows.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/histogram/_rows.js
deleted file mode 100644
index 27050030ebdfd..0000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/histogram/_rows.js
+++ /dev/null
@@ -1,212 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'rows': [
- {
- 'label': '404: response',
- 'xAxisLabel': 'machine.ram',
- 'ordered': {
- 'interval': 100
- },
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 2147483600,
- 'y': 1
- },
- {
- 'x': 10737418200,
- 'y': 1
- },
- {
- 'x': 15032385500,
- 'y': 2
- },
- {
- 'x': 19327352800,
- 'y': 1
- },
- {
- 'x': 32212254700,
- 'y': 1
- }
- ]
- }
- ],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- },
- {
- 'label': '200: response',
- 'xAxisLabel': 'machine.ram',
- 'ordered': {
- 'interval': 100
- },
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 3221225400,
- 'y': 4
- },
- {
- 'x': 4294967200,
- 'y': 3
- },
- {
- 'x': 5368709100,
- 'y': 3
- },
- {
- 'x': 6442450900,
- 'y': 2
- },
- {
- 'x': 7516192700,
- 'y': 2
- },
- {
- 'x': 8589934500,
- 'y': 2
- },
- {
- 'x': 9663676400,
- 'y': 3
- },
- {
- 'x': 11811160000,
- 'y': 3
- },
- {
- 'x': 12884901800,
- 'y': 2
- },
- {
- 'x': 13958643700,
- 'y': 1
- },
- {
- 'x': 15032385500,
- 'y': 2
- },
- {
- 'x': 16106127300,
- 'y': 3
- },
- {
- 'x': 17179869100,
- 'y': 1
- },
- {
- 'x': 18253611000,
- 'y': 4
- },
- {
- 'x': 19327352800,
- 'y': 1
- },
- {
- 'x': 20401094600,
- 'y': 1
- },
- {
- 'x': 21474836400,
- 'y': 4
- },
- {
- 'x': 32212254700,
- 'y': 3
- }
- ]
- }
- ],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- },
- {
- 'label': '503: response',
- 'xAxisLabel': 'machine.ram',
- 'ordered': {
- 'interval': 100
- },
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 10737418200,
- 'y': 1
- }
- ]
- }
- ],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- }
- ],
- 'xAxisOrderedValues': [
- 2147483600,
- 3221225400,
- 4294967200,
- 5368709100,
- 6442450900,
- 7516192700,
- 8589934500,
- 9663676400,
- 10737418200,
- 11811160000,
- 12884901800,
- 13958643700,
- 15032385500,
- 16106127300,
- 17179869100,
- 18253611000,
- 19327352800,
- 20401094600,
- 21474836400,
- 32212254700,
- ],
- 'hits': 51
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/histogram/_series.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/histogram/_series.js
deleted file mode 100644
index 5c7554db2060d..0000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/histogram/_series.js
+++ /dev/null
@@ -1,124 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'label': '',
- 'xAxisLabel': 'machine.ram',
- 'ordered': {
- 'interval': 100
- },
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 3221225400,
- 'y': 5
- },
- {
- 'x': 4294967200,
- 'y': 2
- },
- {
- 'x': 5368709100,
- 'y': 5
- },
- {
- 'x': 6442450900,
- 'y': 4
- },
- {
- 'x': 7516192700,
- 'y': 1
- },
- {
- 'x': 9663676400,
- 'y': 9
- },
- {
- 'x': 10737418200,
- 'y': 5
- },
- {
- 'x': 11811160000,
- 'y': 5
- },
- {
- 'x': 12884901800,
- 'y': 2
- },
- {
- 'x': 13958643700,
- 'y': 3
- },
- {
- 'x': 15032385500,
- 'y': 3
- },
- {
- 'x': 16106127300,
- 'y': 3
- },
- {
- 'x': 17179869100,
- 'y': 1
- },
- {
- 'x': 18253611000,
- 'y': 6
- },
- {
- 'x': 19327352800,
- 'y': 3
- },
- {
- 'x': 20401094600,
- 'y': 3
- },
- {
- 'x': 21474836400,
- 'y': 7
- },
- {
- 'x': 32212254700,
- 'y': 4
- }
- ]
- }
- ],
- 'hits': 71,
- 'xAxisOrderedValues': [
- 3221225400,
- 4294967200,
- 5368709100,
- 6442450900,
- 7516192700,
- 9663676400,
- 10737418200,
- 11811160000,
- 12884901800,
- 13958643700,
- 15032385500,
- 16106127300,
- 17179869100,
- 18253611000,
- 19327352800,
- 20401094600,
- 21474836400,
- 32212254700,
- ],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/histogram/_slices.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/histogram/_slices.js
deleted file mode 100644
index c47155840cec5..0000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/histogram/_slices.js
+++ /dev/null
@@ -1,309 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'label': '',
- 'slices': {
- 'children': [
- {
- 'name': 0,
- 'size': 378611,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 1000,
- 'size': 205997,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 2000,
- 'size': 397189,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 3000,
- 'size': 397195,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 4000,
- 'size': 398429,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 5000,
- 'size': 397843,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 6000,
- 'size': 398140,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 7000,
- 'size': 398076,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 8000,
- 'size': 396746,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 9000,
- 'size': 397418,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 10000,
- 'size': 20222,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 11000,
- 'size': 20173,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 12000,
- 'size': 20026,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 13000,
- 'size': 19986,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 14000,
- 'size': 20091,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 15000,
- 'size': 20052,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 16000,
- 'size': 20349,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 17000,
- 'size': 20290,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 18000,
- 'size': 20399,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 19000,
- 'size': 20133,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 20000,
- 'size': 9,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- }
- ]
- },
- 'names': [
- 0,
- 1000,
- 2000,
- 3000,
- 4000,
- 5000,
- 6000,
- 7000,
- 8000,
- 9000,
- 10000,
- 11000,
- 12000,
- 13000,
- 14000,
- 15000,
- 16000,
- 17000,
- 18000,
- 19000,
- 20000
- ],
- 'hits': 3967374,
- 'tooltipFormatter': function (event) {
- return event.point;
- }
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/not_enough_data/_one_point.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/not_enough_data/_one_point.js
deleted file mode 100644
index b05e258133963..0000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/not_enough_data/_one_point.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'label': '',
- 'xAxisLabel': '',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': '_all',
- 'y': 274
- }
- ]
- }
- ],
- 'hits': 274,
- 'xAxisOrderedValues': ['_all'],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/range/_columns.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/range/_columns.js
deleted file mode 100644
index d6f3fc4361f32..0000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/range/_columns.js
+++ /dev/null
@@ -1,62 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'columns': [
- {
- 'label': 'apache: _type',
- 'xAxisLabel': 'bytes ranges',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': '0.0-1000.0',
- 'y': 13309
- },
- {
- 'x': '1000.0-2000.0',
- 'y': 7196
- }
- ]
- }
- ]
- },
- {
- 'label': 'nginx: _type',
- 'xAxisLabel': 'bytes ranges',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': '0.0-1000.0',
- 'y': 3278
- },
- {
- 'x': '1000.0-2000.0',
- 'y': 1804
- }
- ]
- }
- ]
- }
- ],
- 'hits': 171499,
- 'xAxisOrderedValues': ['0.0-1000.0', '1000.0-2000.0'],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/range/_rows.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/range/_rows.js
deleted file mode 100644
index b420565b1c96b..0000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/range/_rows.js
+++ /dev/null
@@ -1,88 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'rows': [
- {
- 'label': 'Mozilla/5.0 (X11; Linux x86_64; rv:6.0a1) Gecko/20110421 Firefox/6.0a1: agent.raw',
- 'xAxisLabel': 'bytes ranges',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': '0.0-1000.0',
- 'y': 6422,
- 'y0': 0
- },
- {
- 'x': '1000.0-2000.0',
- 'y': 3446,
- 'y0': 0
- }
- ]
- }
- ]
- },
- {
- 'label': 'Mozilla/5.0 (X11; Linux i686) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.50 Safari/534.24: agent.raw',
- 'xAxisLabel': 'bytes ranges',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': '0.0-1000.0',
- 'y': 5430,
- 'y0': 0
- },
- {
- 'x': '1000.0-2000.0',
- 'y': 3010,
- 'y0': 0
- }
- ]
- }
- ]
- },
- {
- 'label': 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322): agent.raw',
- 'xAxisLabel': 'bytes ranges',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': '0.0-1000.0',
- 'y': 4735,
- 'y0': 0
- },
- {
- 'x': '1000.0-2000.0',
- 'y': 2542,
- 'y0': 0
- }
- ]
- }
- ]
- }
- ],
- 'hits': 171501,
- 'xAxisOrderedValues': ['0.0-1000.0', '1000.0-2000.0'],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/range/_series.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/range/_series.js
deleted file mode 100644
index 2ac35efadc8f2..0000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/range/_series.js
+++ /dev/null
@@ -1,38 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'label': '',
- 'xAxisLabel': 'bytes ranges',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': '0.0-1000.0',
- 'y': 16576
- },
- {
- 'x': '1000.0-2000.0',
- 'y': 9005
- }
- ]
- }
- ],
- 'hits': 171500,
- 'xAxisOrderedValues': ['0.0-1000.0', '1000.0-2000.0'],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/significant_terms/_columns.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/significant_terms/_columns.js
deleted file mode 100644
index 5b1e29ac0d54a..0000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/significant_terms/_columns.js
+++ /dev/null
@@ -1,242 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'columns': [
- {
- 'label': 'http: links',
- 'xAxisLabel': 'Top 5 unusual terms in @tags',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'success',
- 'y': 144000
- },
- {
- 'x': 'info',
- 'y': 128237
- },
- {
- 'x': 'security',
- 'y': 34518
- },
- {
- 'x': 'error',
- 'y': 10258
- },
- {
- 'x': 'warning',
- 'y': 17188
- }
- ]
- }
- ],
- 'xAxisOrderedValues': ['success', 'info', 'security', 'error', 'warning'],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- },
- {
- 'label': 'info: links',
- 'xAxisLabel': 'Top 5 unusual terms in @tags',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'success',
- 'y': 108148
- },
- {
- 'x': 'info',
- 'y': 96242
- },
- {
- 'x': 'security',
- 'y': 25889
- },
- {
- 'x': 'error',
- 'y': 7673
- },
- {
- 'x': 'warning',
- 'y': 12842
- }
- ]
- }
- ],
- 'xAxisOrderedValues': ['success', 'info', 'security', 'error', 'warning'],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- },
- {
- 'label': 'www.slate.com: links',
- 'xAxisLabel': 'Top 5 unusual terms in @tags',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'success',
- 'y': 98056
- },
- {
- 'x': 'info',
- 'y': 87344
- },
- {
- 'x': 'security',
- 'y': 23577
- },
- {
- 'x': 'error',
- 'y': 7004
- },
- {
- 'x': 'warning',
- 'y': 11759
- }
- ]
- }
- ],
- 'xAxisOrderedValues': ['success', 'info', 'security', 'error', 'warning'],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- },
- {
- 'label': 'twitter.com: links',
- 'xAxisLabel': 'Top 5 unusual terms in @tags',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'success',
- 'y': 74154
- },
- {
- 'x': 'info',
- 'y': 65963
- },
- {
- 'x': 'security',
- 'y': 17832
- },
- {
- 'x': 'error',
- 'y': 5258
- },
- {
- 'x': 'warning',
- 'y': 8906
- }
- ]
- }
- ],
- 'xAxisOrderedValues': ['success', 'info', 'security', 'error', 'warning'],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- },
- {
- 'label': 'www.www.slate.com: links',
- 'xAxisLabel': 'Top 5 unusual terms in @tags',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'success',
- 'y': 62591
- },
- {
- 'x': 'info',
- 'y': 55822
- },
- {
- 'x': 'security',
- 'y': 15100
- },
- {
- 'x': 'error',
- 'y': 4564
- },
- {
- 'x': 'warning',
- 'y': 7498
- }
- ]
- }
- ],
- 'xAxisOrderedValues': ['success', 'info', 'security', 'error', 'warning'],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- }
- ],
- 'hits': 171446
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/significant_terms/_rows.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/significant_terms/_rows.js
deleted file mode 100644
index 147eb691eb67b..0000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/significant_terms/_rows.js
+++ /dev/null
@@ -1,242 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'rows': [
- {
- 'label': 'h3: headings',
- 'xAxisLabel': 'Top 5 unusual terms in @tags',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'success',
- 'y': 144000
- },
- {
- 'x': 'info',
- 'y': 128235
- },
- {
- 'x': 'security',
- 'y': 34518
- },
- {
- 'x': 'error',
- 'y': 10257
- },
- {
- 'x': 'warning',
- 'y': 17188
- }
- ]
- }
- ],
- 'xAxisOrderedValues': ['success', 'info', 'security', 'error', 'warning'],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- },
- {
- 'label': 'h5: headings',
- 'xAxisLabel': 'Top 5 unusual terms in @tags',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'success',
- 'y': 144000
- },
- {
- 'x': 'info',
- 'y': 128235
- },
- {
- 'x': 'security',
- 'y': 34518
- },
- {
- 'x': 'error',
- 'y': 10257
- },
- {
- 'x': 'warning',
- 'y': 17188
- }
- ]
- }
- ],
- 'xAxisOrderedValues': ['success', 'info', 'security', 'error', 'warning'],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- },
- {
- 'label': 'http: headings',
- 'xAxisLabel': 'Top 5 unusual terms in @tags',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'success',
- 'y': 144000
- },
- {
- 'x': 'info',
- 'y': 128235
- },
- {
- 'x': 'security',
- 'y': 34518
- },
- {
- 'x': 'error',
- 'y': 10257
- },
- {
- 'x': 'warning',
- 'y': 17188
- }
- ]
- }
- ],
- 'xAxisOrderedValues': ['success', 'info', 'security', 'error', 'warning'],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- },
- {
- 'label': 'success: headings',
- 'xAxisLabel': 'Top 5 unusual terms in @tags',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'success',
- 'y': 120689
- },
- {
- 'x': 'info',
- 'y': 107621
- },
- {
- 'x': 'security',
- 'y': 28916
- },
- {
- 'x': 'error',
- 'y': 8590
- },
- {
- 'x': 'warning',
- 'y': 14548
- }
- ]
- }
- ],
- 'xAxisOrderedValues': ['success', 'info', 'security', 'error', 'warning'],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- },
- {
- 'label': 'www.slate.com: headings',
- 'xAxisLabel': 'Top 5 unusual terms in @tags',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'success',
- 'y': 62292
- },
- {
- 'x': 'info',
- 'y': 55646
- },
- {
- 'x': 'security',
- 'y': 14823
- },
- {
- 'x': 'error',
- 'y': 4441
- },
- {
- 'x': 'warning',
- 'y': 7539
- }
- ]
- }
- ],
- 'xAxisOrderedValues': ['success', 'info', 'security', 'error', 'warning'],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- }
- ],
- 'hits': 171445
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/significant_terms/_series.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/significant_terms/_series.js
deleted file mode 100644
index 3691d854c6c2a..0000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/significant_terms/_series.js
+++ /dev/null
@@ -1,49 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'label': '',
- 'xAxisLabel': 'Top 5 unusual terms in @tags',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'success',
- 'y': 143995
- },
- {
- 'x': 'info',
- 'y': 128233
- },
- {
- 'x': 'security',
- 'y': 34515
- },
- {
- 'x': 'error',
- 'y': 10256
- },
- {
- 'x': 'warning',
- 'y': 17188
- }
- ]
- }
- ],
- 'hits': 171439,
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/stacked/_stacked.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/stacked/_stacked.js
deleted file mode 100644
index 228a22ed534d5..0000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/stacked/_stacked.js
+++ /dev/null
@@ -1,1635 +0,0 @@
-import moment from 'moment';
-
-export default {
- 'label': '',
- 'xAxisLabel': '@timestamp per 30 sec',
- 'ordered': {
- 'date': true,
- 'interval': 30000,
- 'min': 1416850340336,
- 'max': 1416852140336
- },
- 'yAxisLabel': 'Count of documents',
- 'xAxisOrderedValues': [
- 1416850320000,
- 1416850350000,
- 1416850380000,
- 1416850410000,
- 1416850440000,
- 1416850470000,
- 1416850500000,
- 1416850530000,
- 1416850560000,
- 1416850590000,
- 1416850620000,
- 1416850650000,
- 1416850680000,
- 1416850710000,
- 1416850740000,
- 1416850770000,
- 1416850800000,
- 1416850830000,
- 1416850860000,
- 1416850890000,
- 1416850920000,
- 1416850950000,
- 1416850980000,
- 1416851010000,
- 1416851040000,
- 1416851070000,
- 1416851100000,
- 1416851130000,
- 1416851160000,
- 1416851190000,
- 1416851220000,
- 1416851250000,
- 1416851280000,
- 1416851310000,
- 1416851340000,
- 1416851370000,
- 1416851400000,
- 1416851430000,
- 1416851460000,
- 1416851490000,
- 1416851520000,
- 1416851550000,
- 1416851580000,
- 1416851610000,
- 1416851640000,
- 1416851670000,
- 1416851700000,
- 1416851730000,
- 1416851760000,
- 1416851790000,
- 1416851820000,
- 1416851850000,
- 1416851880000,
- 1416851910000,
- 1416851940000,
- 1416851970000,
- 1416852000000,
- 1416852030000,
- 1416852060000,
- 1416852090000,
- 1416852120000,
- ],
- 'series': [
- {
- 'label': 'jpg',
- 'values': [
- {
- 'x': 1416850320000,
- 'y': 110,
- 'y0': 0
- },
- {
- 'x': 1416850350000,
- 'y': 24,
- 'y0': 0
- },
- {
- 'x': 1416850380000,
- 'y': 34,
- 'y0': 0
- },
- {
- 'x': 1416850410000,
- 'y': 21,
- 'y0': 0
- },
- {
- 'x': 1416850440000,
- 'y': 32,
- 'y0': 0
- },
- {
- 'x': 1416850470000,
- 'y': 24,
- 'y0': 0
- },
- {
- 'x': 1416850500000,
- 'y': 16,
- 'y0': 0
- },
- {
- 'x': 1416850530000,
- 'y': 27,
- 'y0': 0
- },
- {
- 'x': 1416850560000,
- 'y': 24,
- 'y0': 0
- },
- {
- 'x': 1416850590000,
- 'y': 38,
- 'y0': 0
- },
- {
- 'x': 1416850620000,
- 'y': 33,
- 'y0': 0
- },
- {
- 'x': 1416850650000,
- 'y': 33,
- 'y0': 0
- },
- {
- 'x': 1416850680000,
- 'y': 31,
- 'y0': 0
- },
- {
- 'x': 1416850710000,
- 'y': 24,
- 'y0': 0
- },
- {
- 'x': 1416850740000,
- 'y': 24,
- 'y0': 0
- },
- {
- 'x': 1416850770000,
- 'y': 38,
- 'y0': 0
- },
- {
- 'x': 1416850800000,
- 'y': 34,
- 'y0': 0
- },
- {
- 'x': 1416850830000,
- 'y': 30,
- 'y0': 0
- },
- {
- 'x': 1416850860000,
- 'y': 38,
- 'y0': 0
- },
- {
- 'x': 1416850890000,
- 'y': 19,
- 'y0': 0
- },
- {
- 'x': 1416850920000,
- 'y': 23,
- 'y0': 0
- },
- {
- 'x': 1416850950000,
- 'y': 33,
- 'y0': 0
- },
- {
- 'x': 1416850980000,
- 'y': 28,
- 'y0': 0
- },
- {
- 'x': 1416851010000,
- 'y': 24,
- 'y0': 0
- },
- {
- 'x': 1416851040000,
- 'y': 22,
- 'y0': 0
- },
- {
- 'x': 1416851070000,
- 'y': 28,
- 'y0': 0
- },
- {
- 'x': 1416851100000,
- 'y': 27,
- 'y0': 0
- },
- {
- 'x': 1416851130000,
- 'y': 32,
- 'y0': 0
- },
- {
- 'x': 1416851160000,
- 'y': 32,
- 'y0': 0
- },
- {
- 'x': 1416851190000,
- 'y': 30,
- 'y0': 0
- },
- {
- 'x': 1416851220000,
- 'y': 32,
- 'y0': 0
- },
- {
- 'x': 1416851250000,
- 'y': 36,
- 'y0': 0
- },
- {
- 'x': 1416851280000,
- 'y': 32,
- 'y0': 0
- },
- {
- 'x': 1416851310000,
- 'y': 29,
- 'y0': 0
- },
- {
- 'x': 1416851340000,
- 'y': 22,
- 'y0': 0
- },
- {
- 'x': 1416851370000,
- 'y': 29,
- 'y0': 0
- },
- {
- 'x': 1416851400000,
- 'y': 33,
- 'y0': 0
- },
- {
- 'x': 1416851430000,
- 'y': 28,
- 'y0': 0
- },
- {
- 'x': 1416851460000,
- 'y': 39,
- 'y0': 0
- },
- {
- 'x': 1416851490000,
- 'y': 28,
- 'y0': 0
- },
- {
- 'x': 1416851520000,
- 'y': 28,
- 'y0': 0
- },
- {
- 'x': 1416851550000,
- 'y': 28,
- 'y0': 0
- },
- {
- 'x': 1416851580000,
- 'y': 30,
- 'y0': 0
- },
- {
- 'x': 1416851610000,
- 'y': 29,
- 'y0': 0
- },
- {
- 'x': 1416851640000,
- 'y': 30,
- 'y0': 0
- },
- {
- 'x': 1416851670000,
- 'y': 23,
- 'y0': 0
- },
- {
- 'x': 1416851700000,
- 'y': 23,
- 'y0': 0
- },
- {
- 'x': 1416851730000,
- 'y': 27,
- 'y0': 0
- },
- {
- 'x': 1416851760000,
- 'y': 21,
- 'y0': 0
- },
- {
- 'x': 1416851790000,
- 'y': 24,
- 'y0': 0
- },
- {
- 'x': 1416851820000,
- 'y': 26,
- 'y0': 0
- },
- {
- 'x': 1416851850000,
- 'y': 26,
- 'y0': 0
- },
- {
- 'x': 1416851880000,
- 'y': 21,
- 'y0': 0
- },
- {
- 'x': 1416851910000,
- 'y': 33,
- 'y0': 0
- },
- {
- 'x': 1416851940000,
- 'y': 23,
- 'y0': 0
- },
- {
- 'x': 1416851970000,
- 'y': 46,
- 'y0': 0
- },
- {
- 'x': 1416852000000,
- 'y': 27,
- 'y0': 0
- },
- {
- 'x': 1416852030000,
- 'y': 20,
- 'y0': 0
- },
- {
- 'x': 1416852060000,
- 'y': 34,
- 'y0': 0
- },
- {
- 'x': 1416852090000,
- 'y': 15,
- 'y0': 0
- },
- {
- 'x': 1416852120000,
- 'y': 18,
- 'y0': 0
- }
- ]
- },
- {
- 'label': 'css',
- 'values': [
- {
- 'x': 1416850320000,
- 'y': 3,
- 'y0': 11
- },
- {
- 'x': 1416850350000,
- 'y': 13,
- 'y0': 24
- },
- {
- 'x': 1416850380000,
- 'y': 5,
- 'y0': 34
- },
- {
- 'x': 1416850410000,
- 'y': 12,
- 'y0': 21
- },
- {
- 'x': 1416850440000,
- 'y': 9,
- 'y0': 32
- },
- {
- 'x': 1416850470000,
- 'y': 12,
- 'y0': 24
- },
- {
- 'x': 1416850500000,
- 'y': 6,
- 'y0': 16
- },
- {
- 'x': 1416850530000,
- 'y': 6,
- 'y0': 27
- },
- {
- 'x': 1416850560000,
- 'y': 11,
- 'y0': 24
- },
- {
- 'x': 1416850590000,
- 'y': 11,
- 'y0': 38
- },
- {
- 'x': 1416850620000,
- 'y': 6,
- 'y0': 33
- },
- {
- 'x': 1416850650000,
- 'y': 8,
- 'y0': 33
- },
- {
- 'x': 1416850680000,
- 'y': 6,
- 'y0': 31
- },
- {
- 'x': 1416850710000,
- 'y': 4,
- 'y0': 24
- },
- {
- 'x': 1416850740000,
- 'y': 9,
- 'y0': 24
- },
- {
- 'x': 1416850770000,
- 'y': 3,
- 'y0': 38
- },
- {
- 'x': 1416850800000,
- 'y': 5,
- 'y0': 34
- },
- {
- 'x': 1416850830000,
- 'y': 6,
- 'y0': 30
- },
- {
- 'x': 1416850860000,
- 'y': 9,
- 'y0': 38
- },
- {
- 'x': 1416850890000,
- 'y': 5,
- 'y0': 19
- },
- {
- 'x': 1416850920000,
- 'y': 8,
- 'y0': 23
- },
- {
- 'x': 1416850950000,
- 'y': 9,
- 'y0': 33
- },
- {
- 'x': 1416850980000,
- 'y': 5,
- 'y0': 28
- },
- {
- 'x': 1416851010000,
- 'y': 6,
- 'y0': 24
- },
- {
- 'x': 1416851040000,
- 'y': 9,
- 'y0': 22
- },
- {
- 'x': 1416851070000,
- 'y': 9,
- 'y0': 28
- },
- {
- 'x': 1416851100000,
- 'y': 11,
- 'y0': 27
- },
- {
- 'x': 1416851130000,
- 'y': 5,
- 'y0': 32
- },
- {
- 'x': 1416851160000,
- 'y': 8,
- 'y0': 32
- },
- {
- 'x': 1416851190000,
- 'y': 6,
- 'y0': 30
- },
- {
- 'x': 1416851220000,
- 'y': 10,
- 'y0': 32
- },
- {
- 'x': 1416851250000,
- 'y': 5,
- 'y0': 36
- },
- {
- 'x': 1416851280000,
- 'y': 6,
- 'y0': 32
- },
- {
- 'x': 1416851310000,
- 'y': 4,
- 'y0': 29
- },
- {
- 'x': 1416851340000,
- 'y': 8,
- 'y0': 22
- },
- {
- 'x': 1416851370000,
- 'y': 3,
- 'y0': 29
- },
- {
- 'x': 1416851400000,
- 'y': 8,
- 'y0': 33
- },
- {
- 'x': 1416851430000,
- 'y': 10,
- 'y0': 28
- },
- {
- 'x': 1416851460000,
- 'y': 5,
- 'y0': 39
- },
- {
- 'x': 1416851490000,
- 'y': 7,
- 'y0': 28
- },
- {
- 'x': 1416851520000,
- 'y': 6,
- 'y0': 28
- },
- {
- 'x': 1416851550000,
- 'y': 4,
- 'y0': 28
- },
- {
- 'x': 1416851580000,
- 'y': 9,
- 'y0': 30
- },
- {
- 'x': 1416851610000,
- 'y': 3,
- 'y0': 29
- },
- {
- 'x': 1416851640000,
- 'y': 9,
- 'y0': 30
- },
- {
- 'x': 1416851670000,
- 'y': 6,
- 'y0': 23
- },
- {
- 'x': 1416851700000,
- 'y': 11,
- 'y0': 23
- },
- {
- 'x': 1416851730000,
- 'y': 4,
- 'y0': 27
- },
- {
- 'x': 1416851760000,
- 'y': 8,
- 'y0': 21
- },
- {
- 'x': 1416851790000,
- 'y': 5,
- 'y0': 24
- },
- {
- 'x': 1416851820000,
- 'y': 7,
- 'y0': 26
- },
- {
- 'x': 1416851850000,
- 'y': 7,
- 'y0': 26
- },
- {
- 'x': 1416851880000,
- 'y': 4,
- 'y0': 21
- },
- {
- 'x': 1416851910000,
- 'y': 8,
- 'y0': 33
- },
- {
- 'x': 1416851940000,
- 'y': 6,
- 'y0': 23
- },
- {
- 'x': 1416851970000,
- 'y': 6,
- 'y0': 46
- },
- {
- 'x': 1416852000000,
- 'y': 3,
- 'y0': 27
- },
- {
- 'x': 1416852030000,
- 'y': 6,
- 'y0': 20
- },
- {
- 'x': 1416852060000,
- 'y': 5,
- 'y0': 34
- },
- {
- 'x': 1416852090000,
- 'y': 5,
- 'y0': 15
- },
- {
- 'x': 1416852120000,
- 'y': 1,
- 'y0': 18
- }
- ]
- },
- {
- 'label': 'gif',
- 'values': [
- {
- 'x': 1416850320000,
- 'y': 1,
- 'y0': 14
- },
- {
- 'x': 1416850350000,
- 'y': 2,
- 'y0': 37
- },
- {
- 'x': 1416850380000,
- 'y': 4,
- 'y0': 39
- },
- {
- 'x': 1416850410000,
- 'y': 2,
- 'y0': 33
- },
- {
- 'x': 1416850440000,
- 'y': 3,
- 'y0': 41
- },
- {
- 'x': 1416850470000,
- 'y': 1,
- 'y0': 36
- },
- {
- 'x': 1416850500000,
- 'y': 1,
- 'y0': 22
- },
- {
- 'x': 1416850530000,
- 'y': 1,
- 'y0': 33
- },
- {
- 'x': 1416850560000,
- 'y': 2,
- 'y0': 35
- },
- {
- 'x': 1416850590000,
- 'y': 5,
- 'y0': 49
- },
- {
- 'x': 1416850620000,
- 'y': 1,
- 'y0': 39
- },
- {
- 'x': 1416850650000,
- 'y': 1,
- 'y0': 41
- },
- {
- 'x': 1416850680000,
- 'y': 4,
- 'y0': 37
- },
- {
- 'x': 1416850710000,
- 'y': 1,
- 'y0': 28
- },
- {
- 'x': 1416850740000,
- 'y': 3,
- 'y0': 33
- },
- {
- 'x': 1416850770000,
- 'y': 2,
- 'y0': 41
- },
- {
- 'x': 1416850800000,
- 'y': 2,
- 'y0': 39
- },
- {
- 'x': 1416850830000,
- 'y': 5,
- 'y0': 36
- },
- {
- 'x': 1416850860000,
- 'y': 3,
- 'y0': 47
- },
- {
- 'x': 1416850890000,
- 'y': 1,
- 'y0': 24
- },
- {
- 'x': 1416850920000,
- 'y': 3,
- 'y0': 31
- },
- {
- 'x': 1416850950000,
- 'y': 4,
- 'y0': 42
- },
- {
- 'x': 1416850980000,
- 'y': 3,
- 'y0': 33
- },
- {
- 'x': 1416851010000,
- 'y': 5,
- 'y0': 30
- },
- {
- 'x': 1416851040000,
- 'y': 2,
- 'y0': 31
- },
- {
- 'x': 1416851070000,
- 'y': 3,
- 'y0': 37
- },
- {
- 'x': 1416851100000,
- 'y': 5,
- 'y0': 38
- },
- {
- 'x': 1416851130000,
- 'y': 3,
- 'y0': 37
- },
- {
- 'x': 1416851160000,
- 'y': 4,
- 'y0': 40
- },
- {
- 'x': 1416851190000,
- 'y': 9,
- 'y0': 36
- },
- {
- 'x': 1416851220000,
- 'y': 7,
- 'y0': 42
- },
- {
- 'x': 1416851250000,
- 'y': 2,
- 'y0': 41
- },
- {
- 'x': 1416851280000,
- 'y': 1,
- 'y0': 38
- },
- {
- 'x': 1416851310000,
- 'y': 2,
- 'y0': 33
- },
- {
- 'x': 1416851340000,
- 'y': 5,
- 'y0': 30
- },
- {
- 'x': 1416851370000,
- 'y': 3,
- 'y0': 32
- },
- {
- 'x': 1416851400000,
- 'y': 5,
- 'y0': 41
- },
- {
- 'x': 1416851430000,
- 'y': 4,
- 'y0': 38
- },
- {
- 'x': 1416851460000,
- 'y': 5,
- 'y0': 44
- },
- {
- 'x': 1416851490000,
- 'y': 2,
- 'y0': 35
- },
- {
- 'x': 1416851520000,
- 'y': 2,
- 'y0': 34
- },
- {
- 'x': 1416851550000,
- 'y': 4,
- 'y0': 32
- },
- {
- 'x': 1416851580000,
- 'y': 3,
- 'y0': 39
- },
- {
- 'x': 1416851610000,
- 'y': 4,
- 'y0': 32
- },
- {
- 'x': 1416851640000,
- 'y': 0,
- 'y0': 39
- },
- {
- 'x': 1416851670000,
- 'y': 2,
- 'y0': 29
- },
- {
- 'x': 1416851700000,
- 'y': 1,
- 'y0': 34
- },
- {
- 'x': 1416851730000,
- 'y': 3,
- 'y0': 31
- },
- {
- 'x': 1416851760000,
- 'y': 0,
- 'y0': 29
- },
- {
- 'x': 1416851790000,
- 'y': 4,
- 'y0': 29
- },
- {
- 'x': 1416851820000,
- 'y': 3,
- 'y0': 33
- },
- {
- 'x': 1416851850000,
- 'y': 3,
- 'y0': 33
- },
- {
- 'x': 1416851880000,
- 'y': 0,
- 'y0': 25
- },
- {
- 'x': 1416851910000,
- 'y': 0,
- 'y0': 41
- },
- {
- 'x': 1416851940000,
- 'y': 3,
- 'y0': 29
- },
- {
- 'x': 1416851970000,
- 'y': 3,
- 'y0': 52
- },
- {
- 'x': 1416852000000,
- 'y': 1,
- 'y0': 30
- },
- {
- 'x': 1416852030000,
- 'y': 5,
- 'y0': 26
- },
- {
- 'x': 1416852060000,
- 'y': 3,
- 'y0': 39
- },
- {
- 'x': 1416852090000,
- 'y': 1,
- 'y0': 20
- },
- {
- 'x': 1416852120000,
- 'y': 2,
- 'y0': 19
- }
- ]
- },
- {
- 'label': 'png',
- 'values': [
- {
- 'x': 1416850320000,
- 'y': 1,
- 'y0': 15
- },
- {
- 'x': 1416850350000,
- 'y': 6,
- 'y0': 39
- },
- {
- 'x': 1416850380000,
- 'y': 6,
- 'y0': 43
- },
- {
- 'x': 1416850410000,
- 'y': 5,
- 'y0': 35
- },
- {
- 'x': 1416850440000,
- 'y': 3,
- 'y0': 44
- },
- {
- 'x': 1416850470000,
- 'y': 5,
- 'y0': 37
- },
- {
- 'x': 1416850500000,
- 'y': 6,
- 'y0': 23
- },
- {
- 'x': 1416850530000,
- 'y': 1,
- 'y0': 34
- },
- {
- 'x': 1416850560000,
- 'y': 3,
- 'y0': 37
- },
- {
- 'x': 1416850590000,
- 'y': 2,
- 'y0': 54
- },
- {
- 'x': 1416850620000,
- 'y': 1,
- 'y0': 40
- },
- {
- 'x': 1416850650000,
- 'y': 1,
- 'y0': 42
- },
- {
- 'x': 1416850680000,
- 'y': 2,
- 'y0': 41
- },
- {
- 'x': 1416850710000,
- 'y': 5,
- 'y0': 29
- },
- {
- 'x': 1416850740000,
- 'y': 7,
- 'y0': 36
- },
- {
- 'x': 1416850770000,
- 'y': 2,
- 'y0': 43
- },
- {
- 'x': 1416850800000,
- 'y': 3,
- 'y0': 41
- },
- {
- 'x': 1416850830000,
- 'y': 6,
- 'y0': 41
- },
- {
- 'x': 1416850860000,
- 'y': 2,
- 'y0': 50
- },
- {
- 'x': 1416850890000,
- 'y': 4,
- 'y0': 25
- },
- {
- 'x': 1416850920000,
- 'y': 2,
- 'y0': 34
- },
- {
- 'x': 1416850950000,
- 'y': 3,
- 'y0': 46
- },
- {
- 'x': 1416850980000,
- 'y': 8,
- 'y0': 36
- },
- {
- 'x': 1416851010000,
- 'y': 4,
- 'y0': 35
- },
- {
- 'x': 1416851040000,
- 'y': 4,
- 'y0': 33
- },
- {
- 'x': 1416851070000,
- 'y': 1,
- 'y0': 40
- },
- {
- 'x': 1416851100000,
- 'y': 2,
- 'y0': 43
- },
- {
- 'x': 1416851130000,
- 'y': 4,
- 'y0': 40
- },
- {
- 'x': 1416851160000,
- 'y': 3,
- 'y0': 44
- },
- {
- 'x': 1416851190000,
- 'y': 4,
- 'y0': 45
- },
- {
- 'x': 1416851220000,
- 'y': 2,
- 'y0': 49
- },
- {
- 'x': 1416851250000,
- 'y': 4,
- 'y0': 43
- },
- {
- 'x': 1416851280000,
- 'y': 8,
- 'y0': 39
- },
- {
- 'x': 1416851310000,
- 'y': 4,
- 'y0': 35
- },
- {
- 'x': 1416851340000,
- 'y': 4,
- 'y0': 35
- },
- {
- 'x': 1416851370000,
- 'y': 7,
- 'y0': 35
- },
- {
- 'x': 1416851400000,
- 'y': 2,
- 'y0': 46
- },
- {
- 'x': 1416851430000,
- 'y': 3,
- 'y0': 42
- },
- {
- 'x': 1416851460000,
- 'y': 3,
- 'y0': 49
- },
- {
- 'x': 1416851490000,
- 'y': 3,
- 'y0': 37
- },
- {
- 'x': 1416851520000,
- 'y': 4,
- 'y0': 36
- },
- {
- 'x': 1416851550000,
- 'y': 3,
- 'y0': 36
- },
- {
- 'x': 1416851580000,
- 'y': 4,
- 'y0': 42
- },
- {
- 'x': 1416851610000,
- 'y': 5,
- 'y0': 36
- },
- {
- 'x': 1416851640000,
- 'y': 3,
- 'y0': 39
- },
- {
- 'x': 1416851670000,
- 'y': 3,
- 'y0': 31
- },
- {
- 'x': 1416851700000,
- 'y': 2,
- 'y0': 35
- },
- {
- 'x': 1416851730000,
- 'y': 5,
- 'y0': 34
- },
- {
- 'x': 1416851760000,
- 'y': 4,
- 'y0': 29
- },
- {
- 'x': 1416851790000,
- 'y': 5,
- 'y0': 33
- },
- {
- 'x': 1416851820000,
- 'y': 1,
- 'y0': 36
- },
- {
- 'x': 1416851850000,
- 'y': 3,
- 'y0': 36
- },
- {
- 'x': 1416851880000,
- 'y': 6,
- 'y0': 25
- },
- {
- 'x': 1416851910000,
- 'y': 4,
- 'y0': 41
- },
- {
- 'x': 1416851940000,
- 'y': 7,
- 'y0': 32
- },
- {
- 'x': 1416851970000,
- 'y': 5,
- 'y0': 55
- },
- {
- 'x': 1416852000000,
- 'y': 2,
- 'y0': 31
- },
- {
- 'x': 1416852030000,
- 'y': 2,
- 'y0': 31
- },
- {
- 'x': 1416852060000,
- 'y': 4,
- 'y0': 42
- },
- {
- 'x': 1416852090000,
- 'y': 6,
- 'y0': 21
- },
- {
- 'x': 1416852120000,
- 'y': 2,
- 'y0': 21
- }
- ]
- },
- {
- 'label': 'php',
- 'values': [
- {
- 'x': 1416850320000,
- 'y': 0,
- 'y0': 16
- },
- {
- 'x': 1416850350000,
- 'y': 1,
- 'y0': 45
- },
- {
- 'x': 1416850380000,
- 'y': 0,
- 'y0': 49
- },
- {
- 'x': 1416850410000,
- 'y': 2,
- 'y0': 40
- },
- {
- 'x': 1416850440000,
- 'y': 0,
- 'y0': 47
- },
- {
- 'x': 1416850470000,
- 'y': 0,
- 'y0': 42
- },
- {
- 'x': 1416850500000,
- 'y': 3,
- 'y0': 29
- },
- {
- 'x': 1416850530000,
- 'y': 1,
- 'y0': 35
- },
- {
- 'x': 1416850560000,
- 'y': 3,
- 'y0': 40
- },
- {
- 'x': 1416850590000,
- 'y': 2,
- 'y0': 56
- },
- {
- 'x': 1416850620000,
- 'y': 2,
- 'y0': 41
- },
- {
- 'x': 1416850650000,
- 'y': 5,
- 'y0': 43
- },
- {
- 'x': 1416850680000,
- 'y': 2,
- 'y0': 43
- },
- {
- 'x': 1416850710000,
- 'y': 1,
- 'y0': 34
- },
- {
- 'x': 1416850740000,
- 'y': 2,
- 'y0': 43
- },
- {
- 'x': 1416850770000,
- 'y': 2,
- 'y0': 45
- },
- {
- 'x': 1416850800000,
- 'y': 1,
- 'y0': 44
- },
- {
- 'x': 1416850830000,
- 'y': 1,
- 'y0': 47
- },
- {
- 'x': 1416850860000,
- 'y': 1,
- 'y0': 52
- },
- {
- 'x': 1416850890000,
- 'y': 1,
- 'y0': 29
- },
- {
- 'x': 1416850920000,
- 'y': 2,
- 'y0': 36
- },
- {
- 'x': 1416850950000,
- 'y': 2,
- 'y0': 49
- },
- {
- 'x': 1416850980000,
- 'y': 0,
- 'y0': 44
- },
- {
- 'x': 1416851010000,
- 'y': 3,
- 'y0': 39
- },
- {
- 'x': 1416851040000,
- 'y': 2,
- 'y0': 37
- },
- {
- 'x': 1416851070000,
- 'y': 2,
- 'y0': 41
- },
- {
- 'x': 1416851100000,
- 'y': 2,
- 'y0': 45
- },
- {
- 'x': 1416851130000,
- 'y': 0,
- 'y0': 44
- },
- {
- 'x': 1416851160000,
- 'y': 1,
- 'y0': 47
- },
- {
- 'x': 1416851190000,
- 'y': 2,
- 'y0': 49
- },
- {
- 'x': 1416851220000,
- 'y': 4,
- 'y0': 51
- },
- {
- 'x': 1416851250000,
- 'y': 0,
- 'y0': 47
- },
- {
- 'x': 1416851280000,
- 'y': 3,
- 'y0': 47
- },
- {
- 'x': 1416851310000,
- 'y': 3,
- 'y0': 39
- },
- {
- 'x': 1416851340000,
- 'y': 2,
- 'y0': 39
- },
- {
- 'x': 1416851370000,
- 'y': 2,
- 'y0': 42
- },
- {
- 'x': 1416851400000,
- 'y': 3,
- 'y0': 48
- },
- {
- 'x': 1416851430000,
- 'y': 1,
- 'y0': 45
- },
- {
- 'x': 1416851460000,
- 'y': 0,
- 'y0': 52
- },
- {
- 'x': 1416851490000,
- 'y': 2,
- 'y0': 40
- },
- {
- 'x': 1416851520000,
- 'y': 1,
- 'y0': 40
- },
- {
- 'x': 1416851550000,
- 'y': 3,
- 'y0': 39
- },
- {
- 'x': 1416851580000,
- 'y': 1,
- 'y0': 46
- },
- {
- 'x': 1416851610000,
- 'y': 2,
- 'y0': 41
- },
- {
- 'x': 1416851640000,
- 'y': 1,
- 'y0': 42
- },
- {
- 'x': 1416851670000,
- 'y': 2,
- 'y0': 34
- },
- {
- 'x': 1416851700000,
- 'y': 3,
- 'y0': 37
- },
- {
- 'x': 1416851730000,
- 'y': 1,
- 'y0': 39
- },
- {
- 'x': 1416851760000,
- 'y': 1,
- 'y0': 33
- },
- {
- 'x': 1416851790000,
- 'y': 1,
- 'y0': 38
- },
- {
- 'x': 1416851820000,
- 'y': 1,
- 'y0': 37
- },
- {
- 'x': 1416851850000,
- 'y': 1,
- 'y0': 39
- },
- {
- 'x': 1416851880000,
- 'y': 1,
- 'y0': 31
- },
- {
- 'x': 1416851910000,
- 'y': 2,
- 'y0': 45
- },
- {
- 'x': 1416851940000,
- 'y': 0,
- 'y0': 39
- },
- {
- 'x': 1416851970000,
- 'y': 0,
- 'y0': 60
- },
- {
- 'x': 1416852000000,
- 'y': 1,
- 'y0': 33
- },
- {
- 'x': 1416852030000,
- 'y': 2,
- 'y0': 33
- },
- {
- 'x': 1416852060000,
- 'y': 1,
- 'y0': 46
- },
- {
- 'x': 1416852090000,
- 'y': 1,
- 'y0': 27
- },
- {
- 'x': 1416852120000,
- 'y': 0,
- 'y0': 23
- }
- ]
- }
- ],
- 'hits': 2595,
- 'xAxisFormatter': function (thing) {
- return moment(thing);
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/terms/_columns.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/terms/_columns.js
deleted file mode 100644
index 4683640725f2a..0000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/terms/_columns.js
+++ /dev/null
@@ -1,146 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'columns': [
- {
- 'label': 'logstash: index',
- 'xAxisLabel': 'Top 5 extension',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'jpg',
- 'y': 110710
- },
- {
- 'x': 'css',
- 'y': 27376
- },
- {
- 'x': 'png',
- 'y': 16664
- },
- {
- 'x': 'gif',
- 'y': 11264
- },
- {
- 'x': 'php',
- 'y': 5448
- }
- ]
- }
- ],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- },
- {
- 'label': '2014.11.12: index',
- 'xAxisLabel': 'Top 5 extension',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'jpg',
- 'y': 110643
- },
- {
- 'x': 'css',
- 'y': 27350
- },
- {
- 'x': 'png',
- 'y': 16648
- },
- {
- 'x': 'gif',
- 'y': 11257
- },
- {
- 'x': 'php',
- 'y': 5440
- }
- ]
- }
- ],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- },
- {
- 'label': '2014.11.11: index',
- 'xAxisLabel': 'Top 5 extension',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'jpg',
- 'y': 67
- },
- {
- 'x': 'css',
- 'y': 26
- },
- {
- 'x': 'png',
- 'y': 16
- },
- {
- 'x': 'gif',
- 'y': 7
- },
- {
- 'x': 'php',
- 'y': 8
- }
- ]
- }
- ],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- }
- ],
- 'xAxisOrderedValues': ['jpg', 'css', 'png', 'gif', 'php'],
- 'hits': 171462
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/terms/_rows.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/terms/_rows.js
deleted file mode 100644
index 2b4ee83eca44c..0000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/terms/_rows.js
+++ /dev/null
@@ -1,100 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'rows': [
- {
- 'label': '0.0-1000.0: bytes',
- 'xAxisLabel': 'Top 5 extension',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'jpg',
- 'y': 3378
- },
- {
- 'x': 'css',
- 'y': 762
- },
- {
- 'x': 'png',
- 'y': 527
- },
- {
- 'x': 'gif',
- 'y': 11258
- },
- {
- 'x': 'php',
- 'y': 653
- }
- ]
- }
- ],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- },
- {
- 'label': '1000.0-2000.0: bytes',
- 'xAxisLabel': 'Top 5 extension',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'jpg',
- 'y': 6422
- },
- {
- 'x': 'css',
- 'y': 1591
- },
- {
- 'x': 'png',
- 'y': 430
- },
- {
- 'x': 'gif',
- 'y': 8
- },
- {
- 'x': 'php',
- 'y': 561
- }
- ]
- }
- ],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- }
- ],
- 'xAxisOrderedValues': ['jpg', 'css', 'png', 'gif', 'php'],
- 'hits': 171458
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/terms/_series.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/terms/_series.js
deleted file mode 100644
index f717012d430cf..0000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/terms/_series.js
+++ /dev/null
@@ -1,50 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'label': '',
- 'xAxisLabel': 'Top 5 extension',
- 'xAxisOrderedValues': ['jpg', 'css', 'png', 'gif', 'php'],
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'jpg',
- 'y': 110710
- },
- {
- 'x': 'css',
- 'y': 27389
- },
- {
- 'x': 'png',
- 'y': 16661
- },
- {
- 'x': 'gif',
- 'y': 11269
- },
- {
- 'x': 'php',
- 'y': 5447
- }
- ]
- }
- ],
- 'hits': 171476,
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/terms/_seriesMultiple.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/terms/_seriesMultiple.js
deleted file mode 100644
index 2b86663ab4673..0000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/terms/_seriesMultiple.js
+++ /dev/null
@@ -1,72 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'xAxisOrderedValues': ['_all'],
- 'yAxisLabel': 'Count',
- 'zAxisLabel': 'machine.os.raw: Descending',
- 'yScale': null,
- 'series': [{
- 'label': 'ios',
- 'id': '1',
- 'yAxisFormatter': _.identity,
- 'values': [{
- 'x': '_all',
- 'y': 2820,
- 'series': 'ios'
- }]
- }, {
- 'label': 'win 7',
- 'aggId': '1',
- 'yAxisFormatter': _.identity,
- 'values': [{
- 'x': '_all',
- 'y': 2319,
- 'series': 'win 7'
- }]
- }, {
- 'label': 'win 8',
- 'id': '1',
- 'yAxisFormatter': _.identity,
- 'values': [{
- 'x': '_all',
- 'y': 1835,
- 'series': 'win 8'
- }]
- }, {
- 'label': 'windows xp service pack 2 version 20123452',
- 'id': '1',
- 'yAxisFormatter': _.identity,
- 'values': [{
- 'x': '_all',
- 'y': 734,
- 'series': 'win xp'
- }]
- }, {
- 'label': 'osx',
- 'id': '1',
- 'yAxisFormatter': _.identity,
- 'values': [{
- 'x': '_all',
- 'y': 1352,
- 'series': 'osx'
- }]
- }],
- 'hits': 14005,
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'yAxisFormatter': function (val) {
- return val;
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/types/point_series.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/types/point_series.js
deleted file mode 100644
index 03646d08298dd..0000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/types/point_series.js
+++ /dev/null
@@ -1,128 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import expect from '@kbn/expect';
-
-import percentileTestdata from './testdata_linechart_percentile.json';
-import percentileTestdataResult from './testdata_linechart_percentile_result.json';
-
-import { vislibPointSeriesTypes as pointSeriesConfig } from '../../../lib/types/point_series';
-
-describe('Point Series Config Type Class Test Suite', function() {
- let parsedConfig;
- const histogramConfig = {
- type: 'histogram',
- addLegend: true,
- tooltip: {
- show: true,
- },
- categoryAxes: [
- {
- id: 'CategoryAxis-1',
- type: 'category',
- title: {},
- },
- ],
- valueAxes: [
- {
- id: 'ValueAxis-1',
- type: 'value',
- labels: {},
- title: {},
- },
- ],
- };
-
- const data = {
- get: prop => {
- return data[prop] || data.data[prop] || null;
- },
- getLabels: () => [],
- data: {
- hits: 621,
- ordered: {
- date: true,
- interval: 30000,
- max: 1408734982458,
- min: 1408734082458,
- },
- series: [
- { label: 's1', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's2', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's3', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's4', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's5', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's6', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's7', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's8', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's9', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's10', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's11', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's12', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's13', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's14', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's15', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's16', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's17', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's18', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's19', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's20', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's21', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's22', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's23', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's24', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's25', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's26', values: [{ x: 1408734060000, y: 8 }] },
- ],
- xAxisLabel: 'Date Histogram',
- yAxisLabel: 'series',
- yAxisFormatter: () => 'test',
- },
- };
-
- describe('histogram chart', function() {
- beforeEach(function() {
- parsedConfig = pointSeriesConfig.column(histogramConfig, data);
- });
- it('should not throw an error when more than 25 series are provided', function() {
- expect(parsedConfig.error).to.be.undefined;
- });
-
- it('should set axis title and formatter from data', () => {
- expect(parsedConfig.categoryAxes[0].title.text).to.equal(data.data.xAxisLabel);
- expect(parsedConfig.valueAxes[0].labels.axisFormatter).to.not.be.undefined;
- });
- });
-
- describe('line chart', function() {
- beforeEach(function() {
- const percentileDataObj = {
- get: prop => {
- return data[prop] || data.data[prop] || null;
- },
- getLabels: () => [],
- data: percentileTestdata.data,
- };
- parsedConfig = pointSeriesConfig.line(percentileTestdata.cfg, percentileDataObj);
- });
- it('should render a percentile line chart', function() {
- expect(JSON.stringify(parsedConfig)).to.eql(JSON.stringify(percentileTestdataResult));
- });
- });
-});
diff --git a/src/legacy/ui/ui_render/bootstrap/template.js.hbs b/src/legacy/ui/ui_render/bootstrap/template.js.hbs
index 8a71c6ccb1506..b60442690af3c 100644
--- a/src/legacy/ui/ui_render/bootstrap/template.js.hbs
+++ b/src/legacy/ui/ui_render/bootstrap/template.js.hbs
@@ -29,6 +29,7 @@ if (window.__kbnStrictCsp__ && window.__kbnCspNotEnforced__) {
document.body.innerHTML = err.outerHTML;
}
+ var stylesheetTarget = document.querySelector('head meta[name="add-styles-here"]')
function loadStyleSheet(url, cb) {
var dom = document.createElement('link');
dom.rel = 'stylesheet';
@@ -36,9 +37,10 @@ if (window.__kbnStrictCsp__ && window.__kbnCspNotEnforced__) {
dom.href = url;
dom.addEventListener('error', failure);
dom.addEventListener('load', cb);
- document.head.appendChild(dom);
+ document.head.insertBefore(dom, stylesheetTarget);
}
+ var scriptsTarget = document.querySelector('head meta[name="add-scripts-here"]')
function loadScript(url, cb) {
var dom = document.createElement('script');
{{!-- NOTE: async = false is used to trigger async-download/ordered-execution as outlined here: https://www.html5rocks.com/en/tutorials/speed/script-loading/ --}}
@@ -46,7 +48,7 @@ if (window.__kbnStrictCsp__ && window.__kbnCspNotEnforced__) {
dom.src = url;
dom.addEventListener('error', failure);
dom.addEventListener('load', cb);
- document.head.appendChild(dom);
+ document.head.insertBefore(dom, scriptsTarget);
}
function load(urls, cb) {
diff --git a/src/legacy/ui/ui_render/ui_render_mixin.js b/src/legacy/ui/ui_render/ui_render_mixin.js
index 7cd87ae01e2c8..692b787ccf405 100644
--- a/src/legacy/ui/ui_render/ui_render_mixin.js
+++ b/src/legacy/ui/ui_render/ui_render_mixin.js
@@ -26,6 +26,8 @@ import { AppBootstrap } from './bootstrap';
import { getApmConfig } from '../apm';
import { DllCompiler } from '../../../optimize/dynamic_dll_plugin';
+const uniq = (...items) => Array.from(new Set(items));
+
/**
* @typedef {import('../../server/kbn_server').default} KbnServer
* @typedef {import('../../server/kbn_server').ResponseToolkit} ResponseToolkit
@@ -138,7 +140,15 @@ export function uiRenderMixin(kbnServer, server, config) {
.reverse(),
]),
];
- const uiPluginIds = [...kbnServer.newPlatform.__internals.uiPlugins.public.keys()];
+
+ const kpPluginIds = uniq(
+ // load these plugins first, they are "shared" and other bundles access their
+ // public/index exports without considering topographic sorting by plugin deps (for now)
+ 'kibanaUtils',
+ 'esUiShared',
+ 'kibanaReact',
+ ...kbnServer.newPlatform.__internals.uiPlugins.public.keys()
+ );
const jsDependencyPaths = [
...UiSharedDeps.jsDepFilenames.map(
@@ -153,7 +163,7 @@ export function uiRenderMixin(kbnServer, server, config) {
`${regularBundlePath}/commons.bundle.js`,
]),
- ...['kibanaUtils', 'esUiShared', 'kibanaReact', ...uiPluginIds].map(
+ ...kpPluginIds.map(
pluginId => `${regularBundlePath}/plugin/${pluginId}/${pluginId}.plugin.js`
),
];
@@ -163,7 +173,7 @@ export function uiRenderMixin(kbnServer, server, config) {
const publicPathMap = JSON.stringify({
core: `${regularBundlePath}/core/`,
'kbn-ui-shared-deps': `${regularBundlePath}/kbn-ui-shared-deps/`,
- ...uiPluginIds.reduce(
+ ...kpPluginIds.reduce(
(acc, pluginId) => ({
...acc,
[pluginId]: `${regularBundlePath}/plugin/${pluginId}/`,
diff --git a/src/plugins/data/common/utils/abort_utils.ts b/src/plugins/data/common/utils/abort_utils.ts
index 5051515f3a826..9aec787170840 100644
--- a/src/plugins/data/common/utils/abort_utils.ts
+++ b/src/plugins/data/common/utils/abort_utils.ts
@@ -33,19 +33,31 @@ export class AbortError extends Error {
* Returns a `Promise` corresponding with when the given `AbortSignal` is aborted. Useful for
* situations when you might need to `Promise.race` multiple `AbortSignal`s, or an `AbortSignal`
* with any other expected errors (or completions).
+ *
* @param signal The `AbortSignal` to generate the `Promise` from
* @param shouldReject If `false`, the promise will be resolved, otherwise it will be rejected
*/
-export function toPromise(signal: AbortSignal, shouldReject = false) {
- return new Promise((resolve, reject) => {
+export function toPromise(signal: AbortSignal, shouldReject?: false): Promise;
+export function toPromise(signal: AbortSignal, shouldReject?: true): Promise;
+export function toPromise(signal: AbortSignal, shouldReject: boolean = false) {
+ const promise = new Promise((resolve, reject) => {
const action = shouldReject ? reject : resolve;
if (signal.aborted) action();
signal.addEventListener('abort', action);
});
+
+ /**
+ * Below is to make sure we don't have unhandled promise rejections. Otherwise
+ * Jest tests fail.
+ */
+ promise.catch(() => {});
+
+ return promise;
}
/**
* Returns an `AbortSignal` that will be aborted when the first of the given signals aborts.
+ *
* @param signals
*/
export function getCombinedSignal(signals: AbortSignal[]) {
diff --git a/src/plugins/expressions/common/execution/execution.abortion.test.ts b/src/plugins/expressions/common/execution/execution.abortion.test.ts
new file mode 100644
index 0000000000000..ecbf94eceae64
--- /dev/null
+++ b/src/plugins/expressions/common/execution/execution.abortion.test.ts
@@ -0,0 +1,96 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you under
+ * the Apache License, Version 2.0 (the "License"); you may
+ * not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import { Execution } from './execution';
+import { parseExpression } from '../ast';
+import { createUnitTestExecutor } from '../test_helpers';
+
+jest.useFakeTimers();
+
+beforeEach(() => {
+ jest.clearAllTimers();
+});
+
+const createExecution = (
+ expression: string = 'foo bar=123',
+ context: Record = {},
+ debug: boolean = false
+) => {
+ const executor = createUnitTestExecutor();
+ const execution = new Execution({
+ executor,
+ ast: parseExpression(expression),
+ context,
+ debug,
+ });
+ return execution;
+};
+
+describe('Execution abortion tests', () => {
+ test('can abort an expression immediately', async () => {
+ const execution = createExecution('sleep 10');
+
+ execution.start();
+ execution.cancel();
+
+ const result = await execution.result;
+
+ expect(result).toMatchObject({
+ type: 'error',
+ error: {
+ message: 'The expression was aborted.',
+ name: 'AbortError',
+ },
+ });
+ });
+
+ test('can abort an expression which has function running mid flight', async () => {
+ const execution = createExecution('sleep 300');
+
+ execution.start();
+ jest.advanceTimersByTime(100);
+ execution.cancel();
+
+ const result = await execution.result;
+
+ expect(result).toMatchObject({
+ type: 'error',
+ error: {
+ message: 'The expression was aborted.',
+ name: 'AbortError',
+ },
+ });
+ });
+
+ test('cancelling execution after it completed has no effect', async () => {
+ jest.useRealTimers();
+
+ const execution = createExecution('sleep 1');
+
+ execution.start();
+
+ const result = await execution.result;
+
+ execution.cancel();
+
+ expect(result).toBe(null);
+
+ jest.useFakeTimers();
+ });
+});
diff --git a/src/plugins/expressions/common/execution/execution.ts b/src/plugins/expressions/common/execution/execution.ts
index d0ab178296408..6ee12d97a6422 100644
--- a/src/plugins/expressions/common/execution/execution.ts
+++ b/src/plugins/expressions/common/execution/execution.ts
@@ -22,7 +22,7 @@ import { Executor } from '../executor';
import { createExecutionContainer, ExecutionContainer } from './container';
import { createError } from '../util';
import { Defer, now } from '../../../kibana_utils/common';
-import { AbortError } from '../../../data/common';
+import { toPromise } from '../../../data/common/utils/abort_utils';
import { RequestAdapter, DataAdapter } from '../../../inspector/common';
import { isExpressionValueError, ExpressionValueError } from '../expression_types/specs/error';
import {
@@ -38,6 +38,12 @@ import { ArgumentType, ExpressionFunction } from '../expression_functions';
import { getByAlias } from '../util/get_by_alias';
import { ExecutionContract } from './execution_contract';
+const createAbortErrorValue = () =>
+ createError({
+ message: 'The expression was aborted.',
+ name: 'AbortError',
+ });
+
export interface ExecutionParams<
ExtraContext extends Record = Record
> {
@@ -70,7 +76,7 @@ export class Execution<
/**
* Dynamic state of the execution.
*/
- public readonly state: ExecutionContainer